mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Rename class for code clarity
This commit is contained in:
parent
40907a71b6
commit
b8abe1b7ad
3 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ import org.matrix.android.sdk.api.session.room.UpdatableLivePageResult
|
|||
import org.matrix.android.sdk.api.session.room.model.Membership
|
||||
import org.matrix.android.sdk.rx.asObservable
|
||||
|
||||
class GroupRoomListSectionBuilder(
|
||||
class RoomListSectionBuilderGroup(
|
||||
val session: Session,
|
||||
val stringProvider: StringProvider,
|
||||
val viewModelScope: CoroutineScope,
|
|
@ -46,7 +46,7 @@ import org.matrix.android.sdk.api.session.room.model.Membership
|
|||
import org.matrix.android.sdk.api.session.room.summary.RoomAggregateNotificationCount
|
||||
import org.matrix.android.sdk.rx.asObservable
|
||||
|
||||
class SpaceRoomListSectionBuilder(
|
||||
class RoomListSectionBuilderSpace(
|
||||
val session: Session,
|
||||
val stringProvider: StringProvider,
|
||||
val appStateHandler: AppStateHandler,
|
|
@ -122,7 +122,7 @@ class RoomListViewModel @Inject constructor(
|
|||
|
||||
val sections: List<RoomsSection> by lazy {
|
||||
if (appStateHandler.getCurrentRoomGroupingMethod() is RoomGroupingMethod.BySpace) {
|
||||
SpaceRoomListSectionBuilder(
|
||||
RoomListSectionBuilderSpace(
|
||||
session,
|
||||
stringProvider,
|
||||
appStateHandler,
|
||||
|
@ -138,7 +138,7 @@ class RoomListViewModel @Inject constructor(
|
|||
vectorPreferences.labsSpacesOnlyOrphansInHome()
|
||||
).buildSections(initialState.displayMode)
|
||||
} else {
|
||||
GroupRoomListSectionBuilder(
|
||||
RoomListSectionBuilderGroup(
|
||||
session,
|
||||
stringProvider,
|
||||
viewModelScope,
|
||||
|
|
Loading…
Reference in a new issue