Merge "AppOpsService: Fix de-dup for change records on OpModeWatchers." into rvc-dev am: 4379955437
Change-Id: I15b32d2a0514945d6e05164dd213af3db01f959e
This commit is contained in:
@@ -2545,11 +2545,11 @@ public class AppOpsService extends IAppOpsService.Stub {
|
||||
if (callbacks == null) {
|
||||
callbacks = new HashMap<>();
|
||||
}
|
||||
boolean duplicate = false;
|
||||
final int N = cbs.size();
|
||||
for (int i=0; i<N; i++) {
|
||||
ModeCallback cb = cbs.valueAt(i);
|
||||
ArrayList<ChangeRec> reports = callbacks.get(cb);
|
||||
boolean duplicate = false;
|
||||
if (reports == null) {
|
||||
reports = new ArrayList<>();
|
||||
callbacks.put(cb, reports);
|
||||
|
||||
Reference in New Issue
Block a user