When mLastComputedTaskSize is empty we will recalculate and set it before determining scale and pivot
Bug: 326550571 Test: manually set computed task size to 0 simulating unset circumstance, and ran logs verifying infinite, added fix, and verified logs showing the same scale before and after with get tasksize set Flag: none Change-Id: I0f928885e2fc6cfc0d6a064d6e9f1c614bf7a5af
This commit is contained in:
@@ -5160,6 +5160,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(
|
||||
|
||||
Reference in New Issue
Block a user