Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa1ac930 authored by Yan Wang's avatar Yan Wang
Browse files

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
parent c8bde287
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = {