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

Commit a6def816 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Don't run parallax animation for grid overview" into main

parents 89170d6f ec6f0bad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -208,7 +208,8 @@ public final class TaskViewUtils {
        BaseActivity baseActivity = BaseActivity.fromContext(context);
        DeviceProfile dp = baseActivity.getDeviceProfile();
        boolean showAsGrid = dp.isTablet;
        boolean parallaxCenterAndAdjacentTask = taskIndex != recentsView.getCurrentPage();
        boolean parallaxCenterAndAdjacentTask =
                !showAsGrid && taskIndex != recentsView.getCurrentPage();
        int taskRectTranslationPrimary = recentsView.getScrollOffset(taskIndex);
        int taskRectTranslationSecondary = showAsGrid ? (int) v.getGridTranslationY() : 0;