From 9d3b7aacd9424d866327766a98e6e41998669d30 Mon Sep 17 00:00:00 2001 From: Heemin Seog Date: Mon, 1 Feb 2021 13:50:38 -0800 Subject: [PATCH] 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 --- packages/CarSystemUI/res/layout/headsup_container_bottom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/CarSystemUI/res/layout/headsup_container_bottom.xml b/packages/CarSystemUI/res/layout/headsup_container_bottom.xml index f43f02dfcc8cf..c28da39f04b28 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"/>