Skip to content

Commit

Permalink
Auto optimize default disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jul 9, 2020
1 parent ecedeab commit bff7b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ private void setOptions() {
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ else if (backoff < CONNECT_BACKOFF_AlARM_MAX * 60)

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;

Expand Down

0 comments on commit bff7b77

Please sign in to comment.