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

Commit 49f60903 authored by Kweku Adams's avatar Kweku Adams
Browse files

Log package name that becomes active in the NEVER bucket.

Bug: 153669651
Test: read JobScheduler log output
Change-Id: I009633848b0dd22c0825fca56bc006c3081e5531
parent a23f461e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -184,7 +184,6 @@ public final class BackgroundJobsController extends StateController {
    }

    boolean updateSingleJobRestrictionLocked(JobStatus jobStatus, int activeState) {

        final int uid = jobStatus.getSourceUid();
        final String packageName = jobStatus.getSourcePackageName();

@@ -199,7 +198,7 @@ public final class BackgroundJobsController extends StateController {
            isActive = (activeState == KNOWN_ACTIVE);
        }
        if (isActive && jobStatus.getStandbyBucket() == NEVER_INDEX) {
            Slog.wtf(TAG, "App became active but still in NEVER bucket");
            Slog.wtf(TAG, "App " + packageName + " became active but still in NEVER bucket");
        }
        boolean didChange = jobStatus.setBackgroundNotRestrictedConstraintSatisfied(canRun);
        didChange |= jobStatus.setUidActive(isActive);