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

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

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

View File

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