mirror of https://github.com/M66B/FairEmail.git
Auto optimize default disabled
This commit is contained in:
parent
ecedeab082
commit
bff7b7780e
|
@ -391,7 +391,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
|||
boolean pro = ActivityBilling.isPro(getContext());
|
||||
|
||||
swEnabled.setChecked(prefs.getBoolean("enabled", true));
|
||||
swOptimize.setChecked(prefs.getBoolean("auto_optimize", true));
|
||||
swOptimize.setChecked(prefs.getBoolean("auto_optimize", false));
|
||||
|
||||
int pollInterval = prefs.getInt("poll_interval", ServiceSynchronize.DEFAULT_POLL_INTERVAL);
|
||||
int[] pollIntervalValues = getResources().getIntArray(R.array.pollIntervalValues);
|
||||
|
|
|
@ -1653,7 +1653,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", true);
|
||||
boolean auto_optimize = prefs.getBoolean("auto_optimize", false);
|
||||
if (!auto_optimize)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue