|
|
@ -565,7 +565,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
|
|
|
swEnabled.setChecked(prefs.getBoolean("enabled", true));
|
|
|
|
swEnabled.setChecked(prefs.getBoolean("enabled", true));
|
|
|
|
swOptimize.setChecked(prefs.getBoolean("auto_optimize", false));
|
|
|
|
swOptimize.setChecked(prefs.getBoolean("auto_optimize", false));
|
|
|
|
|
|
|
|
|
|
|
|
int pollInterval = prefs.getInt("poll_interval", 0);
|
|
|
|
int pollInterval = ServiceSynchronize.getPollInterval(getContext());
|
|
|
|
int[] pollIntervalValues = getResources().getIntArray(R.array.pollIntervalValues);
|
|
|
|
int[] pollIntervalValues = getResources().getIntArray(R.array.pollIntervalValues);
|
|
|
|
for (int pos = 0; pos < pollIntervalValues.length; pos++)
|
|
|
|
for (int pos = 0; pos < pollIntervalValues.length; pos++)
|
|
|
|
if (pollIntervalValues[pos] == pollInterval) {
|
|
|
|
if (pollIntervalValues[pos] == pollInterval) {
|
|
|
|