Auto optimize default disabled

This commit is contained in:
M66B 2020-07-09 08:53:16 +02:00
parent ecedeab082
commit bff7b7780e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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