From acf22fc5d031e524d445ae662d0a25c928598afa Mon Sep 17 00:00:00 2001 From: Brad Hinegardner Date: Tue, 8 Aug 2023 22:40:48 +0000 Subject: [PATCH] Fix issue of indication area over top of customize lockscreen button This mostly adds back the xml that was removed here: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/24265928/4/packages/SystemUI/res/layout/keyguard_bottom_area.xml See bug for detailed findings Currently the indication area and customize lockscreen button belong to 2 different parents, which causes difficulties in z-ordering related to the shortcuts touchability and the customization button touchability. Once the MIGRATE_SPLIT_KEYGUARD_BOTTOM_AREA flag is relased and removed, this added xml will be removed. Fixes: 295045628 Test: manual - with no default flags Test: manual - with split keyguard flag enabled Change-Id: Ia6a20fe779a712e0b175f677c2b9be34584dcffa --- .../res/layout/keyguard_bottom_area.xml | 36 +++++++++++++++++++ .../keyguard/KeyguardViewConfigurator.kt | 6 ++++ 2 files changed, 42 insertions(+) diff --git a/packages/SystemUI/res/layout/keyguard_bottom_area.xml b/packages/SystemUI/res/layout/keyguard_bottom_area.xml index 36f7b96a267c7..66c57fc2a9ac7 100644 --- a/packages/SystemUI/res/layout/keyguard_bottom_area.xml +++ b/packages/SystemUI/res/layout/keyguard_bottom_area.xml @@ -22,6 +22,42 @@ android:layout_width="match_parent" android:outlineProvider="none" > + + + + + + + + (R.id.keyguard_indication_area)?.let { + keyguardRootView.removeView(it) + } + } + indicationAreaHandle = KeyguardIndicationAreaBinder.bind( notificationShadeWindowView,