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

Commit 8ff1d001 authored by Evan Severson's avatar Evan Severson
Browse files

Revert "Revert "Only invoke for callbacks watching the given pac..."

Revert submission 22262229-revert-21960657-TEBKYKOPLW

Reason for revert: Fixed parent CL

Reverted changes: /q/submissionid:22262229-revert-21960657-TEBKYKOPLW

Change-Id: Id49f7464045c01cb6bbbfcb852adaaf7eb64e10f
parent 553dcee1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1857,6 +1857,10 @@ public class AppOpsService extends IAppOpsService.Stub {
                for (int i = 0; i < callbackCount; i++) {
                    OnOpModeChangedListener callback = callbacks.valueAt(i);

                    if (!callback.isWatchingUid(uid)) {
                        continue;
                    }

                    if (onlyForeground && (callback.getFlags()
                            & WATCH_FOREGROUND_CHANGES) == 0) {
                        continue;