Reduce the possible number of unique jobs to avoid crash.

Some devices have a limit of 100 unique JobScheduler jobs.
Previously we allowed up to 1,000. Given that we just need
_some_ job running, I lowered the limit to 75 to give us
some head room.
This commit is contained in:
Greyson Parrelli 2019-04-16 09:52:12 -04:00
parent 4055fe183b
commit 2701607810

View File

@ -24,7 +24,7 @@ public class JobSchedulerScheduler implements Scheduler {
private static final String PREF_NAME = "JobSchedulerScheduler_prefs";
private static final String PREF_NEXT_ID = "pref_next_id";
private static final int MAX_ID = 1000;
private static final int MAX_ID = 75;
private final Application application;