Merge "Fix for CTS testAllowWhileIdleJobInTempwhitelist"
am: 23b144eb40
Change-Id: Ifce8f15e876694a35c0e0a31b05d8ea47c462628
This commit is contained in:
@@ -1596,6 +1596,7 @@ public class JobSchedulerService extends com.android.server.SystemService
|
||||
}
|
||||
} break;
|
||||
case MSG_CHECK_JOB:
|
||||
removeMessages(MSG_CHECK_JOB);
|
||||
if (mReportedActive) {
|
||||
// if jobs are currently being run, queue all ready jobs for execution.
|
||||
queueReadyJobsForExecutionLocked();
|
||||
@@ -1652,7 +1653,6 @@ public class JobSchedulerService extends com.android.server.SystemService
|
||||
}
|
||||
maybeRunPendingJobsLocked();
|
||||
// Don't remove JOB_EXPIRED in case one came along while processing the queue.
|
||||
removeMessages(MSG_CHECK_JOB);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user