mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
changed to only restart home activity when resumed with different app layout flag state
This commit is contained in:
parent
cb36ef766c
commit
4222c7c7c4
2 changed files with 2 additions and 2 deletions
|
@ -582,7 +582,7 @@ class HomeActivity :
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkNewAppLayoutFlagChange() {
|
private fun checkNewAppLayoutFlagChange() {
|
||||||
if (buildMeta.isDebug && vectorPreferences.isNewAppLayoutEnabled() != isNewAppLayoutEnabled) {
|
if (vectorPreferences.isNewAppLayoutEnabled() != isNewAppLayoutEnabled) {
|
||||||
restart()
|
restart()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,6 +138,6 @@ class VectorSettingsLabsFragment :
|
||||||
* Action when new layout preference switch is actually clicked.
|
* Action when new layout preference switch is actually clicked.
|
||||||
*/
|
*/
|
||||||
private fun onNewLayoutPreferenceClicked() {
|
private fun onNewLayoutPreferenceClicked() {
|
||||||
MainActivity.restartApp(requireActivity(), MainActivityArgs(clearCache = true))
|
configureUnreadNotificationsAsTabPreference()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue