mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 07:36:31 +02:00
Default auto optimize
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user