changed to only restart home activity when resumed with different app layout flag state
This commit is contained in:
parent
cb36ef766c
commit
4222c7c7c4
@ -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 New Issue
Block a user