Reset Incognito Mode on app relaunch (closes #4928)
(cherry picked from commit f407e30b6e6b5c337f4c7ac5abb7ae0cce093688)
This commit is contained in:
parent
6e570d7fad
commit
bdfbc641d9
@ -82,6 +82,9 @@ open class App : Application(), LifecycleObserver {
|
|||||||
LocaleHelper.updateConfiguration(this, resources.configuration)
|
LocaleHelper.updateConfiguration(this, resources.configuration)
|
||||||
|
|
||||||
ProcessLifecycleOwner.get().lifecycle.addObserver(this)
|
ProcessLifecycleOwner.get().lifecycle.addObserver(this)
|
||||||
|
|
||||||
|
// Reset Incognito Mode on relaunch
|
||||||
|
preferences.incognitoMode().set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun attachBaseContext(base: Context) {
|
override fun attachBaseContext(base: Context) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user