Merge "Add AMS lock protection to mAppsInBackgroundRestricted collection" into tm-qpr-dev
This commit is contained in:
@@ -2269,8 +2269,10 @@ public final class ProcessList {
|
|||||||
final boolean inBgRestricted = ast.isAppBackgroundRestricted(
|
final boolean inBgRestricted = ast.isAppBackgroundRestricted(
|
||||||
app.info.uid, app.info.packageName);
|
app.info.uid, app.info.packageName);
|
||||||
if (inBgRestricted) {
|
if (inBgRestricted) {
|
||||||
|
synchronized (mService) {
|
||||||
mAppsInBackgroundRestricted.add(app);
|
mAppsInBackgroundRestricted.add(app);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
app.mState.setBackgroundRestricted(inBgRestricted);
|
app.mState.setBackgroundRestricted(inBgRestricted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user