Migrate to TaskViewsIterable & TaskViewsIterator - [2/n]
Flag: EXEMPT as no functionality changes Bug: 379942019 Test: Manual Change-Id: I9bd1bad7a9eb8a3cc8333f37e3b535975a5ce0b6
This commit is contained in:
@@ -5228,17 +5228,20 @@ public abstract class RecentsView<
|
||||
SplitAnimationTimings timings = AnimUtils.getDeviceOverviewToSplitTimings(
|
||||
mContainer.getDeviceProfile().isTablet);
|
||||
if (enableLargeDesktopWindowingTile()) {
|
||||
for (int i = 0; i < getTaskViewCount(); i++) {
|
||||
TaskView taskView = requireTaskViewAt(i);
|
||||
TaskView currentPageTaskView = getCurrentPageTaskView();
|
||||
TaskView nextPageTaskView = getTaskViewAt(mCurrentPage + 1);
|
||||
TaskView previousPageTaskView = getTaskViewAt(mCurrentPage - 1);
|
||||
for (TaskView taskView : getTaskViews()) {
|
||||
if (taskView instanceof DesktopTaskView) {
|
||||
// Setting pivot to scale down from screen centre.
|
||||
if (i >= mCurrentPage - 1 && i <= mCurrentPage + 1) {
|
||||
float pivotX;
|
||||
if (i == mCurrentPage - 1) {
|
||||
if (taskView == previousPageTaskView || taskView == currentPageTaskView
|
||||
|| taskView == nextPageTaskView) {
|
||||
float pivotX = 0f;
|
||||
if (taskView == previousPageTaskView) {
|
||||
pivotX = mIsRtl ? taskView.getWidth() / 2f - mPageSpacing
|
||||
- taskView.getWidth()
|
||||
: taskView.getWidth() / 2f + mPageSpacing + taskView.getWidth();
|
||||
} else if (i == mCurrentPage) {
|
||||
} else if (taskView == currentPageTaskView) {
|
||||
pivotX = taskView.getWidth() / 2f;
|
||||
} else {
|
||||
pivotX = mIsRtl ? taskView.getWidth() + mPageSpacing
|
||||
|
||||
Reference in New Issue
Block a user