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

Commit 2bd0b1b3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Avoid unnecessary work." into sc-dev am: 6fc657d1 am: bfcc83c7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15114896

Change-Id: I707ec813ada6a84d69c5ef7cc839519379a30610
parents 96781d06 bfcc83c7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -82,8 +82,12 @@ public final class BackgroundJobsController extends StateController {

    @Override
    public void evaluateStateLocked(JobStatus jobStatus) {
        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
    public void dumpControllerStateLocked(final IndentingPrintWriter pw,