Refactoring

This commit is contained in:
M66B
2021-05-01 19:02:39 +02:00
parent 9bbfd69c8d
commit ec31b6ce6c
4 changed files with 18 additions and 8 deletions

View File

@@ -380,7 +380,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", ServiceSynchronize.DEFAULT_POLL_INTERVAL);
int pollInterval = ServiceSynchronize.getPollInterval(getContext());
int[] pollIntervalValues = getResources().getIntArray(R.array.pollIntervalValues);
for (int pos = 0; pos < pollIntervalValues.length; pos++)
if (pollIntervalValues[pos] == pollInterval) {