Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72289860 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

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
parent 05a31ede
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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();
@@ -88,11 +90,6 @@ public class RecentsViewStateController implements StateHandler {
        progressAnim.setInterpolator(Interpolators.LINEAR);
        progressAnim.addListener(new AnimationSuccessListener() {

            @Override
            public void onAnimationStart(Animator animation) {
                mWorkspaceCard.setWorkspaceScrollingEnabled(mIsRecentsScrollingToFirstTask);
            }

            @Override
            public void onAnimationSuccess(Animator animator) {
                mWorkspaceCard.setWorkspaceScrollingEnabled(toState == OVERVIEW);