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

Commit d4937bbc authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Check the config before moving to restricted bucket on bg restriction" into tm-dev

parents 5593d1dd f130a204
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1841,6 +1841,9 @@ public final class AppRestrictionController {
    }

    void handleUidInactive(int uid, boolean disabled) {
        if (!mConstantsObserver.mBgAutoRestrictedBucket) {
            return;
        }
        final ArrayList<Runnable> pendingTasks = mTmpRunnables;
        synchronized (mSettingsLock) {
            final int index = mActiveUids.indexOfKey(uid);
@@ -1863,6 +1866,9 @@ public final class AppRestrictionController {
    }

    void handleUidActive(int uid) {
        if (!mConstantsObserver.mBgAutoRestrictedBucket) {
            return;
        }
        synchronized (mSettingsLock) {
            final AppStandbyInternal appStandbyInternal = mInjector.getAppStandbyInternal();
            final int userId = UserHandle.getUserId(uid);