Loading quickstep/recents_ui_overrides/src/com/android/quickstep/AbsSwipeUpHandler.java +10 −0 Original line number Diff line number Diff line Loading @@ -525,6 +525,16 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends recentsAttachedToAppWindow = mIsShelfPeeking || mIsLikelyToStartNewTask; } mAnimationFactory.setRecentsAttachedToAppWindow(recentsAttachedToAppWindow, animate); // Reapply window transform throughout the attach animation, as the animation affects how // much the window is bound by overscroll (vs moving freely). if (animate) { ValueAnimator reapplyWindowTransformAnim = ValueAnimator.ofFloat(0, 1); reapplyWindowTransformAnim.addUpdateListener(anim -> applyWindowTransform()); reapplyWindowTransformAnim.setDuration(RECENTS_ATTACH_DURATION).start(); } else { applyWindowTransform(); } } public void setIsLikelyToStartNewTask(boolean isLikelyToStartNewTask) { Loading Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/AbsSwipeUpHandler.java +10 −0 Original line number Diff line number Diff line Loading @@ -525,6 +525,16 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends recentsAttachedToAppWindow = mIsShelfPeeking || mIsLikelyToStartNewTask; } mAnimationFactory.setRecentsAttachedToAppWindow(recentsAttachedToAppWindow, animate); // Reapply window transform throughout the attach animation, as the animation affects how // much the window is bound by overscroll (vs moving freely). if (animate) { ValueAnimator reapplyWindowTransformAnim = ValueAnimator.ofFloat(0, 1); reapplyWindowTransformAnim.addUpdateListener(anim -> applyWindowTransform()); reapplyWindowTransformAnim.setDuration(RECENTS_ATTACH_DURATION).start(); } else { applyWindowTransform(); } } public void setIsLikelyToStartNewTask(boolean isLikelyToStartNewTask) { Loading