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

Commit 73fb5b37 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "IMS-VT: Do not create new surface when setting surface dimensions" into nyc-dev

parents ebddd94c ca7547b1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -371,9 +371,10 @@ public class VideoCallFragment extends BaseFragment<VideoCallPresenter,
            mWidth = width;
            mHeight = height;

            if (mSavedSurfaceTexture != null) {
            if (width != DIMENSIONS_NOT_SET && height != DIMENSIONS_NOT_SET
                    && mSavedSurfaceTexture != null) {
                Log.d(this, "setSurfaceDimensions, mSavedSurfaceTexture is NOT equal to null.");
                createSurface(width, height);
                mSavedSurfaceTexture.setDefaultBufferSize(width, height);
            }
        }