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

Commit 820ef3ed authored by Garfield Tan's avatar Garfield Tan Committed by Automerger Merge Worker
Browse files

Merge "Allow touch regions beyond layers from task managers" into udc-dev am:...

Merge "Allow touch regions beyond layers from task managers" into udc-dev am: 33f5312f am: 751f87fd

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



Change-Id: Ie6992cda0442f2d788d294947607337994c0a089
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e7c7de98 751f87fd
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -8679,8 +8679,14 @@ public class WindowManagerService extends IWindowManager.Stub
        } else {
            h.touchableRegion.set(region);
            h.replaceTouchableRegionWithCrop = false;

            // Task managers may need to receive input events around task layers to resize tasks.
            final int permissionResult = mContext.checkPermission(
                    permission.MANAGE_ACTIVITY_TASKS, callingPid, callingUid);
            if (permissionResult != PackageManager.PERMISSION_GRANTED) {
                h.setTouchableRegionCrop(surface);
            }
        }

        final SurfaceControl.Transaction t = mTransactionFactory.get();
        t.setInputWindowInfo(surface, h);