Revert "Poll on old Android versions"

This reverts commit 0f5e53040d.
This commit is contained in:
M66B
2022-11-29 16:16:42 +01:00
parent ba6c9d15ea
commit e38056a0d3
2 changed files with 1 additions and 5 deletions

View File

@@ -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) {