From 0808af329795b9a99ff72bb844efc54404fb9f71 Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Mon, 7 May 2018 12:11:13 -0700 Subject: [PATCH] Fixes first jump of dividerview when invoking splitscreen The divider's position at the beginning is set to empty rect because splitscreen is not ready yet so it sets the previous position that is empty rect. In this case, the divider is positioned when splitscreen is not ready yet but divider becomes visible so it shows this jump. If the divider was set to splitscreen ignoring visibility then the divider will be positioned correctly. Change-Id: Ic959a4ade89d07ccfeeb8179e2f08e34d31860d6 Fixes: 79262454 Test: reboot, invoke splitscreen via overview --- .../com/android/server/wm/DockedStackDividerController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/wm/DockedStackDividerController.java b/services/core/java/com/android/server/wm/DockedStackDividerController.java index c8baced4cd5dc..39a362906b9d7 100644 --- a/services/core/java/com/android/server/wm/DockedStackDividerController.java +++ b/services/core/java/com/android/server/wm/DockedStackDividerController.java @@ -408,7 +408,7 @@ public class DockedStackDividerController { } void positionDockedStackedDivider(Rect frame) { - TaskStack stack = mDisplayContent.getSplitScreenPrimaryStack(); + TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility(); if (stack == null) { // Unfortunately we might end up with still having a divider, even though the underlying // stack was already removed. This is because we are on AM thread and the removal of the