Merge "Allow touch regions beyond layers from task managers" into udc-dev
This commit is contained in:
@@ -8703,8 +8703,14 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
} else {
|
} else {
|
||||||
h.touchableRegion.set(region);
|
h.touchableRegion.set(region);
|
||||||
h.replaceTouchableRegionWithCrop = false;
|
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);
|
h.setTouchableRegionCrop(surface);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final SurfaceControl.Transaction t = mTransactionFactory.get();
|
final SurfaceControl.Transaction t = mTransactionFactory.get();
|
||||||
t.setInputWindowInfo(surface, h);
|
t.setInputWindowInfo(surface, h);
|
||||||
|
|||||||
Reference in New Issue
Block a user