From b10d885c3bb9d634c1c21178319fdf1c04c16bc3 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Wed, 8 May 2013 15:57:06 -0400 Subject: [PATCH] Exempt the notification panel from animation lockout. We do a lot of launch-app-then-collapse, and it's a game to see whether the app's window activity animation starts before the panel has a chance to finish collapsing. The winning move here is not to play. Requires change I2773601d in f/b. Bug: 8666124 Change-Id: I3e3f1c5a4a505ad7d487c804139445ffd499d8d4 --- .../systemui/statusbar/phone/StatusBarWindowView.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java index f526f0c6f988e..5620e1b35ab4a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java @@ -24,6 +24,7 @@ import android.util.Log; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; +import android.view.ViewRootImpl; import android.widget.FrameLayout; import android.widget.ScrollView; import android.widget.TextSwitcher; @@ -63,6 +64,13 @@ public class StatusBarWindowView extends FrameLayout mExpandHelper = new ExpandHelper(mContext, latestItems, minHeight, maxHeight); mExpandHelper.setEventSource(this); mExpandHelper.setScrollView(mScrollView); + + // We really need to be able to animate while window animations are going on + // so that activities may be started asynchronously from panel animations + final ViewRootImpl root = getViewRootImpl(); + if (root != null) { + root.setDrawDuringWindowsAnimating(true); + } } @Override