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:
Yan Wang
2020-02-21 09:36:10 -08:00
committed by Igor Murashkin
parent 6411a3353d
commit be178769ad

View File

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