Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaba
fenix
Commits
f520586d
Unverified
Commit
f520586d
authored
Nov 17, 2020
by
ekager
Committed by
GitHub
Nov 17, 2020
Browse files
For #12062 - Remove feature flag for return to browser (#16622)
parent
ef5846dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/FeatureFlags.kt
View file @
f520586d
...
...
@@ -35,9 +35,4 @@ object FeatureFlags {
* Enables ETP cookie purging
*/
val
etpCookiePurging
=
Config
.
channel
.
isNightlyOrDebug
/**
* Returns user to browser on cold start if they have open tabs
*/
val
returnToBrowserOnColdStart
=
Config
.
channel
.
isNightlyOrDebug
}
app/src/main/java/org/mozilla/fenix/HomeActivity.kt
View file @
f520586d
...
...
@@ -770,8 +770,7 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
open
fun
navigateToBrowserOnColdStart
()
{
// 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
if
(
FeatureFlags
.
returnToBrowserOnColdStart
&&
settings
().
shouldReturnToBrowser
&&
if
(
settings
().
shouldReturnToBrowser
&&
!
browsingModeManager
.
mode
.
isPrivate
)
{
openToBrowser
(
BrowserDirection
.
FromGlobal
,
null
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment