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

Commit 686b68cb authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update trusted input overlay" into main

parents b327e6dc 455f51f3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -205,6 +205,10 @@ class Session extends IWindowSession.Stub implements IBinder.DeathRecipient {
                    Manifest.permission.SYSTEM_APPLICATION_OVERLAY,
                    new AttributionSource(mUid, mPackageName, null))
                    == PermissionManager.PERMISSION_GRANTED;

            for (int i = 0; i < mAddedWindows.size(); i++) {
                mAddedWindows.get(i).updateTrustedOverlay();
            }
        } else {
            mCanCreateSystemApplicationOverlay = mService.mContext.checkCallingOrSelfPermission(
                    SYSTEM_APPLICATION_OVERLAY)