2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-09 19:10:42 +00:00

For #12062 - Remove feature flag for return to browser (#16622)

This commit is contained in:
ekager 2020-11-17 12:28:59 -08:00 committed by GitHub
parent ef5846dc3e
commit f520586dcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -35,9 +35,4 @@ 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

@ -770,8 +770,7 @@ 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 (FeatureFlags.returnToBrowserOnColdStart && if (settings().shouldReturnToBrowser &&
settings().shouldReturnToBrowser &&
!browsingModeManager.mode.isPrivate !browsingModeManager.mode.isPrivate
) { ) {
openToBrowser(BrowserDirection.FromGlobal, null) openToBrowser(BrowserDirection.FromGlobal, null)