Merge "When mLastComputedTaskSize is empty we will recalculate and set it before determining scale and pivot" into 24D1-dev

This commit is contained in:
Lynn Yeh
2024-03-22 08:53:29 +00:00
committed by Android (Google) Code Review
@@ -5171,6 +5171,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
&& !mOverviewGridEnabled) {
mTempRect.set(mLastComputedCarouselTaskSize);
} else {
if (mLastComputedTaskSize.height() == 0 || mLastComputedTaskSize.width() == 0) {
getTaskSize(mLastComputedTaskSize);
}
mTempRect.set(mLastComputedTaskSize);
}
return getPagedViewOrientedState().getFullScreenScaleAndPivot(