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

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

Merge "Add AMS lock protection to mAppsInBackgroundRestricted collection" into tm-qpr-dev

parents 54175214 a7d6da80
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2269,8 +2269,10 @@ public final class ProcessList {
                final boolean inBgRestricted = ast.isAppBackgroundRestricted(
                        app.info.uid, app.info.packageName);
                if (inBgRestricted) {
                    synchronized (mService) {
                        mAppsInBackgroundRestricted.add(app);
                    }
                }
                app.mState.setBackgroundRestricted(inBgRestricted);
            }