From c8a4cdc067d3e3ed2c94b481d446e5ed75cfdb73 Mon Sep 17 00:00:00 2001 From: Winson Date: Tue, 19 Jan 2016 11:30:51 -0800 Subject: [PATCH] Fix regression with drop targets not being visible. - This happened because the RecentsView had the same priority as the touch handler, which updates the visible dock states, which RV uses to determine what to draw, resulting in the first time after rotation to not show the right targets. The touch handler should now have a higher priority than the view that depends on it. Change-Id: I9441e34f677fe105757c237db0f6970e7cf8203b --- .../src/com/android/systemui/recents/views/RecentsView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java index c77a2f9ccb2d1..1a2f64e8ba71c 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java @@ -312,7 +312,7 @@ public class RecentsView extends FrameLayout { @Override protected void onAttachedToWindow() { EventBus.getDefault().register(this, RecentsActivity.EVENT_BUS_PRIORITY + 1); - EventBus.getDefault().register(mTouchHandler, RecentsActivity.EVENT_BUS_PRIORITY + 1); + EventBus.getDefault().register(mTouchHandler, RecentsActivity.EVENT_BUS_PRIORITY + 2); super.onAttachedToWindow(); }