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

@@ -494,7 +494,7 @@ public class ServiceUI extends IntentService {
am.cancel(piSync);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
int pollInterval = prefs.getInt("poll_interval", 0);
int pollInterval = prefs.getInt("poll_interval", ServiceSynchronize.DEFAULT_POLL_INTERVAL);
if (enabled && pollInterval > 0) {
long now = new Date().getTime();
long interval = pollInterval * 60 * 1000L;