Refactoring

This commit is contained in:
M66B 2022-11-25 14:05:30 +01:00
parent f0096e0b8c
commit 4a0a4eca92
1 changed files with 1 additions and 1 deletions

View File

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