Don't run parallax animation for grid overview

Bug: 286821534
Test: manual
Flag: None
Change-Id: I08c77ce5d538ee07374e9f88fc4d00cc8165f28b
This commit is contained in:
Alex Chau
2024-02-19 17:52:28 +00:00
parent 3d7e1c290e
commit ec6f0bad38
@@ -207,7 +207,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;