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

Commit b8a330eb authored by Matthew Williams's avatar Matthew Williams Committed by Android (Google) Code Review
Browse files

Merge "JobParameters#isDeadlineExpired returns wrong value"

parents f1f9902b 673ef9e0
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -153,8 +153,9 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne
            }

            mRunningJob = job;
            mParams = new JobParameters(this, job.getJobId(), job.getExtras(),
                    !job.isConstraintsSatisfied());
            final boolean isDeadlineExpired =
                    job.getLatestRunTimeElapsed() >= SystemClock.elapsedRealtime();
            mParams = new JobParameters(this, job.getJobId(), job.getExtras(), isDeadlineExpired);
            mExecutionStartTimeElapsed = SystemClock.elapsedRealtime();

            mVerb = VERB_BINDING;