Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 618d7ed2 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Re-calculate mLastComputedCarouselTaskSize when its empty before...

Merge "Re-calculate mLastComputedCarouselTaskSize when its empty before getMaxScaleForFullScreen" into main
parents 7574bed0 f03524ae
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -5169,9 +5169,13 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
    public float getMaxScaleForFullScreen() {
        if (enableGridOnlyOverview() && mActivity.getDeviceProfile().isTablet
                && !mOverviewGridEnabled) {
            if (mLastComputedCarouselTaskSize.isEmpty()) {
                mSizeStrategy.calculateCarouselTaskSize(mActivity, mActivity.getDeviceProfile(),
                        mLastComputedCarouselTaskSize, getPagedOrientationHandler());
            }
            mTempRect.set(mLastComputedCarouselTaskSize);
        } else {
            if (mLastComputedTaskSize.height() == 0 || mLastComputedTaskSize.width() == 0) {
            if (mLastComputedTaskSize.isEmpty()) {
                getTaskSize(mLastComputedTaskSize);
            }
            mTempRect.set(mLastComputedTaskSize);