diff options
author | Jamie Garside <jgarside@google.com> | 2021-02-24 18:12:05 +0000 |
---|---|---|
committer | Jamie Garside <jgarside@google.com> | 2021-02-26 12:53:24 +0000 |
commit | aafdda54a1b5d119a9f066fe6c65ade86133d7e0 (patch) | |
tree | 652d9fa36eda9b0ca1d1fec5a15d428bf1c373c5 /packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java | |
parent | 02abb5b92408a34c6c331925f02fa060947bcedc (diff) |
Update the bouncer to be able to move to either side of a wide screen.
This reverts commit 0f53fd20d5f5a986f6140de89d7d5623466d847b.
The previous version of this didn't account for padding in onMeasure
(I'd taken this out when copying from FrameLayout, as I didn't think we
used padding), which is applied based on window insets. Tests also added
to check this case.
Forwards we go again :)
Bug: 170858298
Test: Included. Manually tested on phone, with feature enabled too; PIN/Pattern/Password all render correctly.
Change-Id: I7b1f35a185214ffdd2187f1c059f77535197a215
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java index 1a8d420fb394..fdab8db67431 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java @@ -404,6 +404,7 @@ public class KeyguardSecurityContainerController extends ViewController<Keyguard if (newView != null) { newView.onResume(KeyguardSecurityView.VIEW_REVEALED); mSecurityViewFlipperController.show(newView); + mView.updateLayoutForSecurityMode(securityMode); } mSecurityCallback.onSecurityModeChanged( |