Merge "Get fresh InProgress array in AttributedAppOp when adding/removing" into sc-dev am: e904d48c7e

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

Change-Id: Iaed811f0eae15db5c835f06b201597e30a6036af
This commit is contained in:
Nate Myren
2021-12-22 20:21:12 +00:00
committed by Automerger Merge Worker

View File

@@ -1314,6 +1314,7 @@ public class AppOpsService extends IAppOpsService.Stub {
event.getAttributionFlags(), event.getAttributionChainId());
}
events = isRunning ? mInProgressEvents : mPausedInProgressEvents;
InProgressStartOpEvent newEvent = events.get(binders.get(i));
if (newEvent != null) {
newEvent.numUnfinishedStarts += numPreviousUnfinishedStarts - 1;