2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00
This commit is contained in:
ekager 2020-10-21 13:29:06 -07:00 committed by GitHub
parent f8d0a97210
commit 6ff5ec846b
2 changed files with 9 additions and 1 deletions

View File

@ -45,4 +45,9 @@ object FeatureFlags {
* Enables ETP cookie purging * Enables ETP cookie purging
*/ */
val etpCookiePurging = Config.channel.isNightlyOrDebug val etpCookiePurging = Config.channel.isNightlyOrDebug
/**
* Returns user to browser on cold start if they have open tabs
*/
val returnToBrowserOnColdStart = Config.channel.isNightlyOrDebug
} }

View File

@ -778,7 +778,10 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
open fun navigateToBrowserOnColdStart() { open fun navigateToBrowserOnColdStart() {
// Normal tabs + cold start -> Should go back to browser if we had any tabs open when we left last // Normal tabs + cold start -> Should go back to browser if we had any tabs open when we left last
// except for PBM + Cold Start there won't be any tabs since they're evicted so we never will navigate // except for PBM + Cold Start there won't be any tabs since they're evicted so we never will navigate
if (settings().shouldReturnToBrowser && !browsingModeManager.mode.isPrivate) { if (FeatureFlags.returnToBrowserOnColdStart &&
settings().shouldReturnToBrowser &&
!browsingModeManager.mode.isPrivate
) {
openToBrowser(BrowserDirection.FromGlobal, null) openToBrowser(BrowserDirection.FromGlobal, null)
} }
} }