From 9170ca82bda25a067a01622793cdd93b29db4205 Mon Sep 17 00:00:00 2001 From: "Qiushi.Han" Date: Mon, 10 Oct 2016 13:31:48 +0800 Subject: [PATCH] Fix split-screen flash issue For smaller size screens (such as 720p), in split-screen view, the size of DividerSnapAlgorithm.mTargets is 3, the divider line can only stop in the middle. As the original logic, when tapping recent, it will cause the top-docked activity to resize, leading to flash in some cases. To fix this, do not call startDragging in this scenario. Google issue: https://code.google.com/p/android/issues/detail?id=224851 Change-Id: Iac58d536ccf668eed67f82418ce2cf90d46670ed --- .../src/com/android/systemui/stackdivider/DividerView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java b/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java index 998f50f205d7f..49b51e4d48bd3 100644 --- a/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java +++ b/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java @@ -1048,6 +1048,7 @@ public class DividerView extends FrameLayout implements OnTouchListener, public final void onBusEvent(RecentsActivityStartingEvent recentsActivityStartingEvent) { if (mGrowRecents && getWindowManagerProxy().getDockSide() == WindowManager.DOCKED_TOP + && getSnapAlgorithm().getMiddleTarget() != getSnapAlgorithm().getLastSplitTarget() && getCurrentPosition() == getSnapAlgorithm().getLastSplitTarget().position) { mState.growAfterRecentsDrawn = true; startDragging(false /* animate */, false /* touching */);