mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/12062 - Feature Flag return to browser (https://github.com/mozilla-mobile/fenix/pull/16099)
This commit is contained in:
parent
f8d0a97210
commit
6ff5ec846b
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user