Refactoring

pull/210/head
M66B 2 years ago
parent f0096e0b8c
commit 4a0a4eca92

@ -565,7 +565,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
swEnabled.setChecked(prefs.getBoolean("enabled", true));
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);
for (int pos = 0; pos < pollIntervalValues.length; pos++)
if (pollIntervalValues[pos] == pollInterval) {

Loading…
Cancel
Save