Merge "Avoid unnecessary work." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6fc657d10f
@@ -82,7 +82,11 @@ public final class BackgroundJobsController extends StateController {
|
||||
|
||||
@Override
|
||||
public void evaluateStateLocked(JobStatus jobStatus) {
|
||||
updateSingleJobRestrictionLocked(jobStatus, sElapsedRealtimeClock.millis(), UNKNOWN);
|
||||
if (jobStatus.isRequestedExpeditedJob()) {
|
||||
// Only requested-EJs could have their run-in-bg constraint change outside of something
|
||||
// coming through the ForceAppStandbyListener.
|
||||
updateSingleJobRestrictionLocked(jobStatus, sElapsedRealtimeClock.millis(), UNKNOWN);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user