Refactoring: schedule exact alarm

This commit is contained in:
M66B
2022-03-20 09:47:12 +01:00
parent 61e9407f62
commit 9074047eb0
11 changed files with 46 additions and 144 deletions

View File

@@ -2879,9 +2879,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
}
static int getPollInterval(Context context) {
if (Helper.isOptimizing12(context))
return (BuildConfig.DEBUG ? 2 : 15);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
return prefs.getInt("poll_interval", 0); // minutes
}