Refactoring

This commit is contained in:
M66B
2020-02-23 18:39:42 +01:00
parent bbed4139e3
commit 5c7378cdfa
4 changed files with 10 additions and 6 deletions

View File

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