mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
@@ -3233,9 +3233,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
}
|
||||
|
||||
static int getPollInterval(Context context) {
|
||||
int def = (Build.VERSION.SDK_INT <= Build.VERSION_CODES.O ? 15 : 0);
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
return prefs.getInt("poll_interval", def); // minutes
|
||||
return prefs.getInt("poll_interval", 0); // minutes
|
||||
}
|
||||
|
||||
static long[] getSchedule(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user