Bug 1219343 - Enable "Always restore tabs" by default r?margaret
Note, the effect of this change varies as follows:
(A) New users:
(B) Existing users who have never opened Settings->Advanced:
- Tabs will restore by default
(D) Existing users who have explicitly set the preference to disabled:
(D) Existing users who visited Settings->Advanced, without explicitly opening this preference:
- Tabs will not restore by default
(The preference already has a value set, hence the default has no effect)
MozReview-Commit-ID: DjMeEcYhusj
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
@@ -1746,17 +1746,17 @@ public abstract class GeckoApp
prefs.edit().putBoolean(PREFS_CRASHED, false).apply();
shouldRestore = true;
}
return shouldRestore;
}
private String getSessionRestorePreference() {
- return getSharedPreferences().getString(GeckoPreferences.PREFS_RESTORE_SESSION, "quit");
+ return getSharedPreferences().getString(GeckoPreferences.PREFS_RESTORE_SESSION, "always");
}
private boolean getRestartFromIntent() {
return ContextUtils.getBooleanExtra(getIntent(), "didRestart", false);
}
/**
* Enable Android StrictMode checks (for supported OS versions).