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.
fork-5.53.8
Greyson Parrelli 2019-04-16 09:52:12 -04:00
rodzic 4055fe183b
commit 2701607810
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;