Rename class for code clarity

This commit is contained in:
Benoit Marty 2021-07-19 18:54:14 +02:00
parent 40907a71b6
commit b8abe1b7ad
3 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,