diff options
author | Daniel Sandler <dsandler@android.com> | 2013-05-08 15:57:06 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2013-05-08 15:57:06 -0400 |
commit | b10d885c3bb9d634c1c21178319fdf1c04c16bc3 (patch) | |
tree | faa99a3ecc6ea5277233836befb960659c838c7a /packages | |
parent | acd341d8682ca57c1066d664725ebc72f5ef10c1 (diff) | |
download | frameworks_base-b10d885c3bb9d634c1c21178319fdf1c04c16bc3.zip frameworks_base-b10d885c3bb9d634c1c21178319fdf1c04c16bc3.tar.gz frameworks_base-b10d885c3bb9d634c1c21178319fdf1c04c16bc3.tar.bz2 |
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
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java | 8 |
1 files changed, 8 insertions, 0 deletions
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 f526f0c..5620e1b 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 |