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/KeyguardSecurityViewFlipper.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/KeyguardSecurityViewFlipper.java')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java index 178ca5e..ea5c304 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java @@ -167,6 +167,16 @@ public class KeyguardSecurityViewFlipper extends ViewFlipper implements Keyguard } @Override + public boolean startDisappearAnimation(Runnable finishRunnable) { + KeyguardSecurityView ksv = getSecurityView(); + if (ksv != null) { + return ksv.startDisappearAnimation(finishRunnable); + } else { + return false; + } + } + + @Override protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { return p instanceof LayoutParams; } |