Don't run parallax animation for grid overview
Bug: 286821534 Test: manual Flag: None Change-Id: I08c77ce5d538ee07374e9f88fc4d00cc8165f28b
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user