changed to only restart home activity when resumed with different app layout flag state

This commit is contained in:
NIkita Fedrunov 2022-09-08 16:24:34 +02:00
parent cb36ef766c
commit 4222c7c7c4
2 changed files with 2 additions and 2 deletions

View file

@ -582,7 +582,7 @@ class HomeActivity :
}
private fun checkNewAppLayoutFlagChange() {
if (buildMeta.isDebug && vectorPreferences.isNewAppLayoutEnabled() != isNewAppLayoutEnabled) {
if (vectorPreferences.isNewAppLayoutEnabled() != isNewAppLayoutEnabled) {
restart()
}
}

View file

@ -138,6 +138,6 @@ class VectorSettingsLabsFragment :
* Action when new layout preference switch is actually clicked.
*/
private fun onNewLayoutPreferenceClicked() {
MainActivity.restartApp(requireActivity(), MainActivityArgs(clearCache = true))
configureUnreadNotificationsAsTabPreference()
}
}