mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
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:
parent
4055fe183b
commit
2701607810
@ -24,7 +24,7 @@ public class JobSchedulerScheduler implements Scheduler {
|
|||||||
private static final String PREF_NAME = "JobSchedulerScheduler_prefs";
|
private static final String PREF_NAME = "JobSchedulerScheduler_prefs";
|
||||||
private static final String PREF_NEXT_ID = "pref_next_id";
|
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;
|
private final Application application;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user