mirror of https://github.com/M66B/FairEmail.git
Restore on launch default disabled
This commit is contained in:
parent
da644f97c0
commit
7216e1cd57
|
@ -218,7 +218,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
|||
// https://developer.android.com/docs/quality-guidelines/core-app-quality
|
||||
long now = new Date().getTime();
|
||||
long last = prefs.getLong("last_launched", 0L);
|
||||
boolean restore_on_launch = prefs.getBoolean("restore_on_launch", true);
|
||||
boolean restore_on_launch = prefs.getBoolean("restore_on_launch", false);
|
||||
if (!restore_on_launch || now - last > RESTORE_STATE_INTERVAL * 60 * 1000L)
|
||||
view.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
else {
|
||||
|
|
|
@ -538,7 +538,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
|
||||
swRestoreOnLaunch.setChecked(prefs.getBoolean("restore_on_launch", true));
|
||||
swRestoreOnLaunch.setChecked(prefs.getBoolean("restore_on_launch", false));
|
||||
swSyncOnlaunch.setChecked(prefs.getBoolean("sync_on_launch", false));
|
||||
swDoubleBack.setChecked(prefs.getBoolean("double_back", false));
|
||||
swConversationActions.setChecked(prefs.getBoolean("conversation_actions", Helper.isGoogle()));
|
||||
|
|
Loading…
Reference in New Issue