From 13178eddf514208ab206ad43dce45d07592fe0ec Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Fri, 19 May 2023 13:24:14 -0700 Subject: [PATCH] Override applyLayoutFeatures for ConstraintHelper This method seems to set the visibility of the subviews based on the visiblity of constraint helper; however we want to hide some views and show some views. The method also adjusts the z order of the view, which seems moot. This will prevent us from updating the visibility of the enter button and the delete button upon screen rotation. Fixes: 268589232 Test: Rotate the screen 90, and 180 degrees. Flip open and close the device. Observer the visibility of the enter and delete button. Change-Id: Id5d8c01e658aed4b06970b5475228f171848f3c4 --- .../res-keyguard/layout/keyguard_pin_view.xml | 2 +- .../android/keyguard/KeyguardPinFlowView.kt | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 packages/SystemUI/src/com/android/keyguard/KeyguardPinFlowView.kt diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_pin_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_pin_view.xml index 330676b3dd5f5..01c5443e9355b 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_pin_view.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_pin_view.xml @@ -82,7 +82,7 @@ androidprv:layout_constraintGuide_percent="0" android:orientation="horizontal" /> -