diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-02-09 16:01:45 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-02-09 16:04:44 -0800 |
commit | 72289860ee5e4a817f1bb4e99710a10eea2f9a57 (patch) | |
tree | c5265c3496eeb9de9241ad12363aefb875d40a53 /quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java | |
parent | 05a31ede4f00c842d7eb18f31483cc149488d14d (diff) | |
download | android_packages_apps_Trebuchet-72289860ee5e4a817f1bb4e99710a10eea2f9a57.tar.gz android_packages_apps_Trebuchet-72289860ee5e4a817f1bb4e99710a10eea2f9a57.tar.bz2 android_packages_apps_Trebuchet-72289860ee5e4a817f1bb4e99710a10eea2f9a57.zip |
Fixing workspace card shifted when going to home.
When animating the wrospace, we skip the properties if for start and end are same.
But after creating the animation, if the property changes, the final property is
never applied.
Bug: 72257542
Change-Id: Id408c7820476273958e835ae99a3a934ad5a4700
Diffstat (limited to 'quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java')
-rw-r--r-- | quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java b/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java index 9ea30f06c..9a5640bde 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java @@ -71,6 +71,8 @@ public class RecentsViewStateController implements StateHandler { .getBoolean("pref_scroll_to_first_task", false); mIsRecentsScrollingToFirstTask = mLauncher.isInState(NORMAL) && toState == OVERVIEW && settingEnabled; + // TODO: Instead of animating the workspace translationX, move the contents + mWorkspaceCard.setWorkspaceScrollingEnabled(mIsRecentsScrollingToFirstTask); // Scroll to the workspace card before changing to the NORMAL state. int currPage = mRecentsView.getCurrentPage(); @@ -89,11 +91,6 @@ public class RecentsViewStateController implements StateHandler { progressAnim.addListener(new AnimationSuccessListener() { @Override - public void onAnimationStart(Animator animation) { - mWorkspaceCard.setWorkspaceScrollingEnabled(mIsRecentsScrollingToFirstTask); - } - - @Override public void onAnimationSuccess(Animator animator) { mWorkspaceCard.setWorkspaceScrollingEnabled(toState == OVERVIEW); mRecentsView.setCurrentPage(mRecentsView.getPageNearestToCenterOfScreen()); |