mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Refactoring: schedule exact alarm
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user