From 68f5430b22608e0c65143c421618e546ccbbe6ec Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 29 Mar 2018 18:36:17 -0700 Subject: [PATCH] Skip waiting for draw when triggering split screen from global action. - Currently a workaround for accessibility use case for split screen, this logic is not used for quickstep so just skip waiting for draw to animate the divider. Bug: 74531468 Test: atest CtsAccessibilityServiceTestCases:AccessibilityWindowQueryTest#testWindowDockAndUndock_dividerWindowAppearsAndDisappears Change-Id: I4b584443d4bf6acfbda92e5a2bfcd4470636d6c5 --- .../SystemUI/src/com/android/systemui/recents/Recents.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/recents/Recents.java b/packages/SystemUI/src/com/android/systemui/recents/Recents.java index 674ccd8c34710..0f85c5b37f653 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/Recents.java +++ b/packages/SystemUI/src/com/android/systemui/recents/Recents.java @@ -492,6 +492,13 @@ public class Recents extends SystemUI } } mDraggingInRecentsCurrentUser = currentUser; + + if (mOverviewProxyService.getProxy() != null) { + // The overview service is handling split screen, so just skip the wait for the + // first draw and notify the divider to start animating now + EventBus.getDefault().post(new RecentsDrawnEvent()); + } + return true; } else { EventBus.getDefault().send(new ShowUserToastEvent(