OSDN Git Service

Tweak recents launch app animation
authorMichael Jurka <mikejurka@google.com>
Thu, 14 Jun 2012 18:57:50 +0000 (11:57 -0700)
committerMichael Jurka <mikejurka@google.com>
Thu, 14 Jun 2012 18:57:50 +0000 (11:57 -0700)
- Sometimes the black background would flash; changing
animation durations to make this much less likely
- Fixing issue in Recents where we sometimes forgot
to disable drawing caches on views after enabling them

packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
services/java/com/android/server/wm/WindowManagerService.java

index bec9aa2..0bdf84a 100644 (file)
@@ -790,7 +790,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
             if (DEBUG) Log.v(TAG, "Starting activity " + intent);
             context.startActivity(intent, opts.toBundle());
         }
-        if (!usingDrawingCache) {
+        if (usingDrawingCache) {
             holder.thumbnailViewImage.setDrawingCacheEnabled(false);
         }
     }
index b85573f..a3f2c3e 100755 (executable)
@@ -3237,7 +3237,7 @@ public class WindowManagerService extends IWindowManager.Stub
             if (delayed) {
                 a = new AlphaAnimation(1, 0);
                 a.setStartOffset(0);
-                a.setDuration(delayDuration - 50);
+                a.setDuration(delayDuration - 120);
                 a.setBackgroundColor(0xFF000000);
             } else {
                 a = createExitAnimationLocked(transit, duration);