diff options
author | Jamie Garside <jgarside@google.com> | 2021-03-25 18:47:57 +0000 |
---|---|---|
committer | Jamie Garside <jgarside@google.com> | 2021-04-01 13:08:10 +0000 |
commit | 63fcd2a00a09a1bfc137b702b49d49b438c8e4e5 (patch) | |
tree | 40ab3172b95483d1eb4a2527e473599aaf91afe4 /packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java | |
parent | 6230fca3d904d0acd134ece115c475edf65f491c (diff) |
Open bouncer on screen side of swipe in one-handed mode.
This detects where the swipe to open the bouncer comes from when the
device is in left-handed mode, and moves the bouncer to that side.
Currently, this is just a simple case of opening it on the screen half
where the first swipe was, rather than following the finger during the
swipe or anything like that.
Bug: 170858298
Test: atest SystemUITests
Change-Id: I4b18cee7d56fedf792a1923e316778bda077e75f
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java index 760eaecae247..4827cab3b5c0 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java @@ -515,6 +515,11 @@ public class KeyguardSecurityContainerController extends ViewController<Keyguard } } + /** Update keyguard position based on a tapped X coordinate. */ + public void updateKeyguardPosition(float x) { + mView.updateKeyguardPosition(x); + } + static class Factory { private final KeyguardSecurityContainer mView; |