Default auto optimize

pull/183/head
M66B 5 years ago
parent 93022cc19b
commit 24aa7fa0f0

@ -287,6 +287,8 @@ public class ApplicationEx extends Application {
} else if (version < 1238) {
if (!prefs.contains("subject_ellipsize"))
editor.putString("subject_ellipsize", "middle");
if (!prefs.contains("auto_optimize"))
editor.putBoolean("auto_optimize", false);
}
if (version < BuildConfig.VERSION_CODE)

@ -391,7 +391,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
break;
}
swOptimize.setChecked(prefs.getBoolean("auto_optimize", false));
swOptimize.setChecked(prefs.getBoolean("auto_optimize", true));
grpExempted.setVisibility(pollInterval == 0 ? View.GONE : View.VISIBLE);
swSchedule.setChecked(prefs.getBoolean("schedule", false) && pro);

@ -1652,7 +1652,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
private void optimizeAccount(Context context, EntityAccount account, String reason) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean auto_optimize = prefs.getBoolean("auto_optimize", false);
boolean auto_optimize = prefs.getBoolean("auto_optimize", true);
if (!auto_optimize)
return;

Loading…
Cancel
Save