[Android] Revert "Leave incognito mode when app is restarted"

Nicolas Pomepuy git at videolan.org
Fri Feb 28 10:24:44 UTC 2025


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Feb 28 10:49:06 2025 +0100| [962fe88eada5167818b48d68a821f49a0ec863cc] | committer: Duncan McNamara

Revert "Leave incognito mode when app is restarted"

This reverts commit 98f46d9e1aa63ac11e9e4910ae8caac8a09ec8bb.

> https://code.videolan.org/videolan/vlc-android/commit/962fe88eada5167818b48d68a821f49a0ec863cc
---

 .../app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt   | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt b/application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
index 9566c637c8..eaabf7a5fc 100644
--- a/application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
+++ b/application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
@@ -49,9 +49,7 @@ import org.videolan.resources.VLCInstance
 import org.videolan.resources.util.startRemoteAccess
 import org.videolan.tools.AppScope
 import org.videolan.tools.KEY_ENABLE_REMOTE_ACCESS
-import org.videolan.tools.KEY_INCOGNITO
 import org.videolan.tools.Settings
-import org.videolan.tools.putSingle
 import org.videolan.vlc.BuildConfig
 import org.videolan.vlc.gui.SendCrashActivity
 import org.videolan.vlc.gui.helpers.NotificationHelper
@@ -92,10 +90,6 @@ class AppSetupDelegate : AppDelegate,
                 setupIndexers()
             }
         }
-
-        //App restarted, leave the incognito mode
-        Settings.getInstance (this).putSingle(KEY_INCOGNITO, false)
-
         AppContextProvider.setLocale(Settings.getInstance(this).getString("set_locale", ""))
 
         //Initiate Kotlinx Dispatchers in a thread to prevent ANR



More information about the Android mailing list