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

Commit c2668b88 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Revert "Redraw live tile in updatePageOffsets()"

This reverts commit 2e3b7c6e.

Reason for revert: regression, see b/186163921

Bug: 186163921
Change-Id: Ida9a225e0880babc3bb08da4fa6f559031c728f7
Test: manual with YT in gesture navigation mode
parent 2e3b7c6e
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -1420,9 +1420,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
        mTaskListChangeId = -1;
        mFocusedTaskId = -1;

        if (mRecentsAnimationController != null) {
            finishRecentsAnimation(true /* toRecents */, null);
        }
        mRecentsAnimationController = null;
        mLiveTileParams.setTargetSet(null);
        mLiveTileTaskViewSimulator.setDrawsBelowRecents(true);

@@ -2519,10 +2517,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
                    ? ((TaskView) child).getPrimaryTaskOffsetTranslationProperty()
                    : mOrientationHandler.getPrimaryViewTranslate();
            translationProperty.set(child, totalTranslation);
            if (LIVE_TILE.get() && mEnableDrawingLiveTile && i == getRunningTaskIndex()) {
                mLiveTileTaskViewSimulator.taskPrimaryTranslation.value = totalTranslation;
                redrawLiveTile();
            }
        }
        updateCurveProperties();
    }