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

Commit 6dcd658e authored by Josh Yang's avatar Josh Yang
Browse files

[Ambient Input] Always dispatch input for wear during ambient mode.

This allows synthesized swipe gestures like DPAD_UP/DPAD_DOWN being
dispatched to apps during ambient mode.

Bug: 270228430
Test: swipe during ambient mode will trigger actions in sysui.
Change-Id: Ic7d3b4e28a2d4b7d48583e1c8aadeeb33b634bed
parent 3efa0267
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -4779,11 +4779,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            return true;
        }

        // Watches consume all key events during ambient when keyguard is not showing.
        if (mHasFeatureWatch) {
            return false;
        }

        // TODO(b/123372519): Refine when dream can support multi display.
        if (isDefaultDisplay) {
            // Send events to a dozing dream since the dream is in control of the state of the