Restore on launch default disabled

This commit is contained in:
M66B 2022-07-01 07:45:42 +02:00
parent da644f97c0
commit 7216e1cd57
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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()));