OSDN Git Service

Re-enable transition animation between face unlock and backup
authorJim Miller <jaggies@google.com>
Wed, 31 Oct 2012 03:37:57 +0000 (20:37 -0700)
committerJim Miller <jaggies@google.com>
Wed, 31 Oct 2012 03:37:57 +0000 (20:37 -0700)
Change-Id: Ia90cf73e400f45c8b73f34cbc521dcbc62258ca8

core/res/res/values/integers.xml
policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java

index d1df2a4..053fc85 100644 (file)
@@ -18,7 +18,7 @@
 -->
 <resources>
     <integer name="kg_carousel_angle">75</integer>
-    <integer name="kg_security_flip_duration">75</integer>
-    <integer name="kg_security_fade_duration">75</integer>
+    <integer name="kg_security_flip_duration">100</integer>
+    <integer name="kg_security_fade_duration">100</integer>
     <integer name="kg_glowpad_rotation_offset">0</integer>
 </resources>
index 69d3e56..0dcf63f 100644 (file)
@@ -670,13 +670,10 @@ public class KeyguardHostView extends KeyguardViewBase {
         // Find and show this child.
         final int childCount = mSecurityViewContainer.getChildCount();
 
-        // Do flip animation to the next screen
-        if (false) {
-            mSecurityViewContainer.setInAnimation(
-                    AnimationUtils.loadAnimation(mContext, R.anim.keyguard_security_animate_in));
-            mSecurityViewContainer.setOutAnimation(
-                    AnimationUtils.loadAnimation(mContext, R.anim.keyguard_security_animate_out));
-        }
+        mSecurityViewContainer.setInAnimation(
+                AnimationUtils.loadAnimation(mContext, R.anim.keyguard_security_fade_in));
+        mSecurityViewContainer.setOutAnimation(
+                AnimationUtils.loadAnimation(mContext, R.anim.keyguard_security_fade_out));
         final int securityViewIdForMode = getSecurityViewIdForMode(securityMode);
         for (int i = 0; i < childCount; i++) {
             if (mSecurityViewContainer.getChildAt(i).getId() == securityViewIdForMode) {