From 4a0a4eca92a9725667b802af281c58db9993a50e Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 25 Nov 2022 14:05:30 +0100 Subject: [PATCH] Refactoring --- .../main/java/eu/faircode/email/FragmentOptionsSynchronize.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java b/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java index efe4bae5b8..f7f24e2ce7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java @@ -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) {