Set touchable region for recents input consumer with shell transitions

It seems like when shell transitions is enabled, the recents input
consumer's touchable region was not set up properly. It could have been
relying on the previous behavior of an input window being touch modal by
default. Now that we have removed touch modal from input, ensrue that
the touchable region is correctly set for the recents input consumer
when shell transitions is enabled.

Bug: 216806304
Test: presubmit
Change-Id: I93c07c992b0b4e9b61c694a18fae99da73deadef
This commit is contained in:
Prabir Pradhan
2022-02-28 11:45:32 -08:00
parent 5546ba69d0
commit 1a5cea7609

View File

@@ -522,6 +522,8 @@ final class InputMonitor {
layer = layer != null ? layer : activeRecents;
// Handle edge-case for SUW where windows don't exist yet
if (layer.getSurfaceControl() != null) {
mRecentsAnimationInputConsumer.mWindowHandle
.replaceTouchableRegionWithCrop(layer.getSurfaceControl());
mRecentsAnimationInputConsumer.show(mInputTransaction, layer);
mAddRecentsAnimationInputConsumerHandle = false;
}