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/KeyguardHostViewController.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/KeyguardHostViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardHostViewController.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardHostViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardHostViewController.java index 02a8958ef657..31f1332b265c 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardHostViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardHostViewController.java @@ -492,4 +492,11 @@ public class KeyguardHostViewController extends ViewController<KeyguardHostView> mKeyguardSecurityContainerController.updateResources(); } } + + /** Update keyguard position based on a tapped X coordinate. */ + public void updateKeyguardPosition(float x) { + if (mKeyguardSecurityContainerController != null) { + mKeyguardSecurityContainerController.updateKeyguardPosition(x); + } + } } |