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

Commit 33f5312f authored by Garfield Tan's avatar Garfield Tan Committed by Android (Google) Code Review
Browse files

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

parents fe04f357 7888447c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -8703,8 +8703,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);