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

Commit 32a4df75 authored by Vania Desmonda's avatar Vania Desmonda
Browse files

Add DISPLAY_TOPOLOGY_AWARE flag to PiP consumer.

This allows PiP to be aware of the display topology and enables PiP to
be moved across different displays.

Fixes: 439839358
Flag: com.android.input.flags.use_topology_aware_flag
Test: manual testing
Change-Id: I25c21a968db6aacb9684102705783b896d6536ba
parent a8d0684b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ final class InputMonitor {
                consumer.mWindowHandle.inputConfig |= InputConfig.DUPLICATE_TOUCH_TO_WALLPAPER;
                break;
            case INPUT_CONSUMER_PIP:
                // This is a valid consumer type, but we don't need any additional configurations.
                consumer.mWindowHandle.inputConfig |= InputConfig.DISPLAY_TOPOLOGY_AWARE;
                break;
            case INPUT_CONSUMER_RECENTS_ANIMATION:
                consumer.mWindowHandle.inputConfig &= ~InputConfig.NOT_FOCUSABLE;