summaryrefslogtreecommitdiff
path: root/startop
diff options
context:
space:
mode:
authorYan Wang <yawanng@google.com>2020-02-21 09:36:10 -0800
committerIgor Murashkin <iam@google.com>2020-02-28 18:08:46 +0000
commitbe178769addde35a14b7a7c033b41da24f6c21b2 (patch)
treecc9e37f0fb878e9fb77bac2109ccfe8a60f3fd2c /startop
parent6411a3353dfd1e72a33c03b0d2d99c3dc532075f (diff)
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 aa1ac9309416519dab21a17b8632645860e1431b)
Diffstat (limited to 'startop')
-rw-r--r--startop/iorap/src/com/google/android/startop/iorap/JobScheduledEvent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/startop/iorap/src/com/google/android/startop/iorap/JobScheduledEvent.java b/startop/iorap/src/com/google/android/startop/iorap/JobScheduledEvent.java
index 9b3bfcb0fa4a..2055b206dd7a 100644
--- a/startop/iorap/src/com/google/android/startop/iorap/JobScheduledEvent.java
+++ b/startop/iorap/src/com/google/android/startop/iorap/JobScheduledEvent.java
@@ -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 = {