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

Commit e1beb1b3 authored by Nate Myren's avatar Nate Myren
Browse files

Fix indicator not removing in certain cases

This is an internal CP of aosp/2041184

Test: manual
Bug: 227647076
Change-Id: I72680218e7147281ded8305154ba7ccd2aea7a7e
Merged-In: I1fe5eb2dcb216ab18907ecbcb3a58edf27b3c21f
parent c49ba33a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ public class AppOpsControllerImpl extends BroadcastReceiver implements AppOpsCon
            Log.w(TAG, String.format("onActiveChanged(%d,%d,%s,%s,%d,%d)", code, uid, packageName,
                    Boolean.toString(active), attributionChainId, attributionFlags));
        }
        if (attributionChainId != AppOpsManager.ATTRIBUTION_CHAIN_ID_NONE
        if (active && attributionChainId != AppOpsManager.ATTRIBUTION_CHAIN_ID_NONE
                && attributionFlags != AppOpsManager.ATTRIBUTION_FLAGS_NONE
                && (attributionFlags & AppOpsManager.ATTRIBUTION_FLAG_ACCESSOR) == 0
                && (attributionFlags & AppOpsManager.ATTRIBUTION_FLAG_TRUSTED) == 0) {