[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
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index 9009e31..4957eaf 100644
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -4779,11 +4779,6 @@
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