diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-08-08 17:00:47 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-08-12 20:52:26 +0000 |
commit | 76a1623afc170a13923b68f3256057d8adeb7937 (patch) | |
tree | 458a7e24ffb9da76391bb683bebfa73d2baa7f6b /packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java | |
parent | 9a0b289f060e68e42d3db0b843d55cf920f3da12 (diff) | |
download | frameworks_base-76a1623afc170a13923b68f3256057d8adeb7937.zip frameworks_base-76a1623afc170a13923b68f3256057d8adeb7937.tar.gz frameworks_base-76a1623afc170a13923b68f3256057d8adeb7937.tar.bz2 |
Preparations for lockscreen launch animations
- Update unlock animations to new spec to make the consistent with
lockscreen launch animations.
- Introduce disappearing motion for security views which runs before
we actually dismiss Keyguard.
- If a window is running the un-force-hide animation, treat as it
would have the wallpaper flag set so the wallpaper stays until
the animation is completely done.
- Run an animation on the wallpaper if the wallpaper is going away.
Bug: 15991916
Bug: 16234603
Bug: 15326120
Change-Id: I063aa4f269ddcf75b9a705e90f0c3056b541b642
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java index 1835b8e..119471b 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java @@ -91,6 +91,14 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe } } + public boolean startDisappearAnimation(Runnable onFinishRunnable) { + if (mCurrentSecuritySelection != SecurityMode.None) { + return getSecurityView(mCurrentSecuritySelection).startDisappearAnimation( + onFinishRunnable); + } + return false; + } + void updateSecurityViews(boolean isBouncing) { int children = mSecurityViewFlipper.getChildCount(); for (int i = 0; i < children; i++) { |