1
0
mirror of https://github.com/vector-im/riotX-android synced 2025-10-06 00:02:48 +02:00

Code quality

This commit is contained in:
Benoit Marty
2021-10-13 15:54:18 +02:00
parent 3b90446828
commit 70d0e5f8fd
2 changed files with 9 additions and 4 deletions

View File

@@ -160,7 +160,7 @@ Formatter\.formatShortFileSize===1
# android\.text\.TextUtils
### This is not a rule, but a warning: the number of "enum class" has changed. For Json classes, it is mandatory that they have `@JsonClass(generateAdapter = false)`. If the enum is not used as a Json class, change the value in file forbidden_strings_in_code.txt
enum class===106
enum class===107
### Do not import temporary legacy classes
import org.matrix.android.sdk.internal.legacy.riot===3

View File

@@ -99,7 +99,9 @@ class RoomListSectionBuilderGroup(
return sections
}
private fun buildHomeSection(sections: MutableList<RoomsSection>, activeGroupAwareQueries: MutableList<UpdatableLivePageResult>, actualGroupId: String?) {
private fun buildHomeSection(sections: MutableList<RoomsSection>,
activeGroupAwareQueries: MutableList<UpdatableLivePageResult>,
actualGroupId: String?) {
if (autoAcceptInvites.showInvites()) {
addSection(
sections = sections,
@@ -164,7 +166,9 @@ class RoomListSectionBuilderGroup(
}
}
private fun buildAllInOneSection(sections: MutableList<RoomsSection>, activeGroupAwareQueries: MutableList<UpdatableLivePageResult>, actualGroupId: String?) {
private fun buildAllInOneSection(sections: MutableList<RoomsSection>,
activeGroupAwareQueries: MutableList<UpdatableLivePageResult>,
actualGroupId: String?) {
if (autoAcceptInvites.showInvites()) {
addSection(
sections,
@@ -362,7 +366,8 @@ class RoomListSectionBuilderGroup(
)
}
private fun withQueryParams(builder: (RoomSummaryQueryParams.Builder) -> Unit, block: (RoomSummaryQueryParams) -> Unit) {
private fun withQueryParams(builder: (RoomSummaryQueryParams.Builder) -> Unit,
block: (RoomSummaryQueryParams) -> Unit) {
RoomSummaryQueryParams.Builder()
.apply { builder.invoke(this) }
.build()