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

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

Merge "Fix job duplication bug" into nyc-dev

parents 42b2acb9 b1c1f9a7
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -311,11 +311,11 @@ public final class JobSchedulerService extends com.android.server.SystemService
            }

            toCancel = mJobs.getJobByUidAndJobId(uId, job.getId());
        }
        startTrackingJob(jobStatus, toCancel);
            if (toCancel != null) {
                cancelJobImpl(toCancel);
            }
            startTrackingJob(jobStatus, toCancel);
        }
        mHandler.obtainMessage(MSG_CHECK_JOB).sendToTarget();
        return JobScheduler.RESULT_SUCCESS;
    }