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

Commit 15bfdf57 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Don't log bad surface size before layout is done."

parents 1d0062e1 96b906f5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -710,11 +710,13 @@ class WindowStateAnimator {

        // Something is wrong and SurfaceFlinger will not like this, try to revert to sane values.
        if (mTmpSize.width() < 1) {
            Slog.w(TAG, "Width of " + w + " is not positive " + mTmpSize.width());
            if (!mWin.mLayoutNeeded) Slog.w(TAG,
                    "Width of " + w + " is not positive " + mTmpSize.width());
            mTmpSize.right = mTmpSize.left + 1;
        }
        if (mTmpSize.height() < 1) {
            Slog.w(TAG, "Height of " + w + " is not positive " + mTmpSize.height());
            if (!mWin.mLayoutNeeded) Slog.w(TAG,
                    "Height of " + w + " is not positive " + mTmpSize.height());
            mTmpSize.bottom = mTmpSize.top + 1;
        }