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

Commit b2387e65 authored by Tim Murray's avatar Tim Murray Committed by Android Git Automerger
Browse files

am 6c271b89: am f3acc630: am 01356906: Merge "Ensure SurfaceView requests WM...

am 6c271b89: am f3acc630: am 01356906: Merge "Ensure SurfaceView requests WM relayout when size changes." into mnc-dr-dev

* commit '6c271b89':
  Ensure SurfaceView requests WM relayout when size changes.
parents c1a13439 6c271b89
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -447,10 +447,11 @@ public class SurfaceView extends View {
        final boolean formatChanged = mFormat != mRequestedFormat;
        final boolean sizeChanged = mWidth != myWidth || mHeight != myHeight;
        final boolean visibleChanged = mVisible != mRequestedVisible;
        final boolean layoutSizeChanged = getWidth() != mLayout.width || getHeight() != mLayout.height;

        if (force || creating || formatChanged || sizeChanged || visibleChanged
            || mLeft != mLocation[0] || mTop != mLocation[1]
            || mUpdateWindowNeeded || mReportDrawNeeded || redrawNeeded) {
            || mUpdateWindowNeeded || mReportDrawNeeded || redrawNeeded || layoutSizeChanged) {

            if (DEBUG) Log.i(TAG, "Changes: creating=" + creating
                    + " format=" + formatChanged + " size=" + sizeChanged