DO NOT MERGE Dont restore focus on new HUN window
When a HUN window shows for the first time, Android framework can try to
find a default focus. As such, the FPV may try to focus the topmost HUN
by default, without having nudged to the HUN window.
Bug: 175897692
Test: manual (reboot and trigger HUN via kitchen sink)
Change-Id: Id4008c587aea353dc0c441593fe32e6e9fea5463
diff --git a/packages/CarSystemUI/res/layout/headsup_container_bottom.xml b/packages/CarSystemUI/res/layout/headsup_container_bottom.xml
index f43f02d..c28da39 100644
--- a/packages/CarSystemUI/res/layout/headsup_container_bottom.xml
+++ b/packages/CarSystemUI/res/layout/headsup_container_bottom.xml
@@ -35,7 +35,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
+ app:layout_constraintTop_toTopOf="parent"
+ app:shouldRestoreFocus="false"/>
<View
android:id="@+id/scrim"