浏览代码

Reset Incognito Mode on app relaunch (closes #4928)

arkon 4 年之前
父节点
当前提交
f407e30b6e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/src/main/java/eu/kanade/tachiyomi/App.kt

+ 3 - 0
app/src/main/java/eu/kanade/tachiyomi/App.kt

@@ -52,6 +52,9 @@ open class App : Application(), LifecycleObserver {
         LocaleHelper.updateConfiguration(this, resources.configuration)
 
         ProcessLifecycleOwner.get().lifecycle.addObserver(this)
+
+        // Reset Incognito Mode on relaunch
+        preferences.incognitoMode().set(false)
     }
 
     override fun attachBaseContext(base: Context) {