From 44e6534e5f18c2391c2837aa0d4e340d3b6dd89a Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Wed, 9 Jan 2019 10:51:37 -0800 Subject: [PATCH] Fix flickering when long swiping from an app Since we update the progress of the launcher anim when recents scrolls, we were essentially jumping back to the overview state every couple frames. Now we don't update that shift once we're in long swipe mode. Bug: 111926330 Change-Id: Ib751becb70df71679ff7557f113d6339a39777d0 --- .../com/android/quickstep/WindowTransformSwipeHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java index 610ef0416f..fd4585ba19 100644 --- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java @@ -422,7 +422,9 @@ public class WindowTransformSwipeHandler { mSyncTransactionApplier = applier; }); mRecentsView.setOnScrollChangeListener((v, scrollX, scrollY, oldScrollX, oldScrollY) -> { - updateFinalShift(); + if (!mBgLongSwipeMode) { + updateFinalShift(); + } }); mRecentsView.setRecentsAnimationWrapper(mRecentsAnimationWrapper); mRecentsView.setClipAnimationHelper(mClipAnimationHelper);