Make sure we're not landing on people's tab when using unified list
Fix bug after toggling notification tab visibility while in unified list (which shouldn't be possible either way). Change-Id: I61d90c3f6973b2629608a00d55332c034465851e
This commit is contained in:
parent
e91be715a1
commit
0df61496f4
@ -152,11 +152,15 @@ class HomeDetailFragment @Inject constructor(
|
|||||||
// As we hide it check if it's not the current item!
|
// As we hide it check if it's not the current item!
|
||||||
withState(viewModel) {
|
withState(viewModel) {
|
||||||
if (it.displayMode.toMenuId() == R.id.bottom_action_notification) {
|
if (it.displayMode.toMenuId() == R.id.bottom_action_notification) {
|
||||||
|
if (vectorPreferences.singleOverview()) {
|
||||||
|
viewModel.handle(HomeDetailAction.SwitchDisplayMode(RoomListDisplayMode.ALL))
|
||||||
|
} else {
|
||||||
viewModel.handle(HomeDetailAction.SwitchDisplayMode(RoomListDisplayMode.PEOPLE))
|
viewModel.handle(HomeDetailAction.SwitchDisplayMode(RoomListDisplayMode.PEOPLE))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun promptForNewUnknownDevices(uid: String, state: UnknownDevicesState, newest: DeviceInfo) {
|
private fun promptForNewUnknownDevices(uid: String, state: UnknownDevicesState, newest: DeviceInfo) {
|
||||||
val user = state.myMatrixItem
|
val user = state.myMatrixItem
|
||||||
|
Loading…
x
Reference in New Issue
Block a user