summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java
diff options
context:
space:
mode:
authorJosh Tsuji <tsuji@google.com>2021-04-23 18:12:25 -0400
committerJosh Tsuji <tsuji@google.com>2021-04-26 04:13:24 +0000
commitea36ab6533dba657e5395f49deecc0669f79933f (patch)
tree06451673573960a99f0c5e33740bf5bd50c5b1f9 /packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java
parent3d7ff0a8d37008eb076d70ae939497561115366e (diff)
Adds the continuous unlock animation!
This adds the new unlock animation, which is a subtle scale and translate from the bottom part of the screen. More importantly, it connects the surface behind the keyguard to your finger when swiping, so that it's one continuous motion between the lock screen and the app/launcher. Issei's RemoteAnimation-enabling CL was rolled back for a test breakage, so you'll need to enable it to see this: adb shell setprop persist.wm.enable_remote_keyguard_animation 1 A few P2 issues to be fixed in follow-up CLs since this one is getting large: - Status bar icons need to animate mid-swipe so they don't jump cut post-unlock (b/183063033) - Launcher should use a custom animation rather than surface-based animation (b/183063432) - The scrim should probably animate out once the surface appears rather than at the end (b/183062235) - Handle RemoteAnimation timeout, either by restarting it, or cancelling the gesture (b/183066204) Test: change security to swipe, unlock via a slow swipe and a fast swipe and everything in between (also, release swipe halfway) Test: PIN/password security Test: double tap to open a notification Test: fingerprint bypass Test: fingerprint from lockscreen Bug: 169692441 Change-Id: Ic78c603b2375d36cf2170b81cca7cddbf334408b
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java
index 015c4e44185b..ecc8c0074e18 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java
@@ -146,6 +146,13 @@ public interface KeyguardViewController {
void startPreHideAnimation(Runnable finishRunnable);
/**
+ * Blocks the current touch gesture from affecting the expansion amount of the notification
+ * panel. This is used after a completed unlock gesture to ignore further dragging before an
+ * ACTION_UP.
+ */
+ void blockPanelExpansionFromCurrentTouch();
+
+ /**
* @return the ViewRootImpl of the View where the Keyguard is mounted.
*/
ViewRootImpl getViewRootImpl();