commit | d766aadae747d873b77dfcb436271eda5aa82f68 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Tue Feb 13 12:03:37 2018 -0800 |
committer | Tony Wickham <twickham@google.com> | Tue Feb 13 12:03:37 2018 -0800 |
tree | e84657196c0e273aa7051819f6708b90e04f9d20 | |
parent | ba7d129aac98bc38c8534a993a9898ee262512a3 [diff] |
Fix scrolling to first task on swipe up for RTL Change-Id: I4f316bd6da7e7d370928accb41e1b44a689094af
diff --git a/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java b/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java index 9a5640b..57e588b 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java
@@ -139,7 +139,9 @@ applyProgress(); if (mIsRecentsScrollingToFirstTask) { int scrollForFirstTask = mRecentsView.getScrollForPage(mRecentsView.getFirstTaskIndex()); - mRecentsView.setScrollX((int) (mTransitionProgress.value * scrollForFirstTask)); + int scrollForPage0 = mRecentsView.getScrollForPage(0); + mRecentsView.setScrollX((int) (mTransitionProgress.value * scrollForFirstTask + + (1 - mTransitionProgress.value) * scrollForPage0)); } }