Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68f5430b authored by Winson Chung's avatar Winson Chung
Browse files

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
parent a6855037
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -492,6 +492,13 @@ public class Recents extends SystemUI
                    }
                    }
                }
                }
                mDraggingInRecentsCurrentUser = currentUser;
                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;
                return true;
            } else {
            } else {
                EventBus.getDefault().send(new ShowUserToastEvent(
                EventBus.getDefault().send(new ShowUserToastEvent(