iorap: Increase the JobScheduledEvent#TYPE_MAX to 1.
Fixes system_server crashes at the end of a job (in #onStopJob)
by correcting the MAX type number.
Bug: 148191073
Test: make
Change-Id: I12b0c65a0b3ad7ab3277a94f51fa2e71d323f862
(cherry picked from commit aa1ac93094)
This commit is contained in:
@@ -40,7 +40,7 @@ public class JobScheduledEvent implements Parcelable {
|
||||
public static final int TYPE_START_JOB = 0;
|
||||
/** JobService#onJobStopped */
|
||||
public static final int TYPE_STOP_JOB = 1;
|
||||
private static final int TYPE_MAX = 0;
|
||||
private static final int TYPE_MAX = 1;
|
||||
|
||||
/** @hide */
|
||||
@IntDef(flag = true, prefix = { "TYPE_" }, value = {
|
||||
|
||||
Reference in New Issue
Block a user