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:
@@ -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
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user