From ad9db9cfe885e2a3b218815b4ac69741a5d2f536 Mon Sep 17 00:00:00 2001 From: axfordjc Date: Wed, 16 Aug 2023 08:58:31 +0000 Subject: [PATCH] Only reinflate bouncer after rotation if flag enabled Re-inflating on orientation change is now guarded by the unreleased flag "lockscreen.enable_landscape", b/293252410, so the behaviour is back to the usual when this flag is off. New tests to cover this case. Bug: 295603468 Test: PinBouncerLandscapeLayout, PinBouncerPortraitLayout, PinBouncerLargeLayout Change-Id: Ida08cc6e5c022a457e0d603ab75424d563dc0538 --- .../KeyguardSecurityContainerController.java | 7 ++- ...KeyguardSecurityContainerControllerTest.kt | 45 +++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java index 04692c48a123f..9f3908a4ab920 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java @@ -27,6 +27,7 @@ import static com.android.keyguard.KeyguardSecurityContainer.USER_TYPE_PRIMARY; import static com.android.keyguard.KeyguardSecurityContainer.USER_TYPE_SECONDARY_USER; import static com.android.keyguard.KeyguardSecurityContainer.USER_TYPE_WORK_PROFILE; import static com.android.systemui.DejankUtils.whitelistIpcs; +import static com.android.systemui.flags.Flags.LOCKSCREEN_ENABLE_LANDSCAPE; import static com.android.systemui.flags.Flags.REVAMPED_BOUNCER_MESSAGES; import android.app.ActivityManager; @@ -370,8 +371,12 @@ public class KeyguardSecurityContainerController extends ViewController