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

Commit 454c831d authored by Chris Tate's avatar Chris Tate Committed by Android (Google) Code Review
Browse files

Merge "Fix system crash in certain jobs-removed cases"

parents 1f397705 41f3fe80
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1149,11 +1149,13 @@ public final class JobStore {
        public void forEachJob(JobStatusFunctor functor) {
            for (int uidIndex = mJobs.size() - 1; uidIndex >= 0; uidIndex--) {
                ArraySet<JobStatus> jobs = mJobs.valueAt(uidIndex);
                if (jobs != null) {
                    for (int i = jobs.size() - 1; i >= 0; i--) {
                        functor.process(jobs.valueAt(i));
                    }
                }
            }
        }

        public void forEachJob(int callingUid, JobStatusFunctor functor) {
            ArraySet<JobStatus> jobs = mJobs.get(callingUid);