mirror of https://github.com/M66B/FairEmail.git
Refactoring
This commit is contained in:
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…
Reference in New Issue