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

Commit ca7547b1 authored by Omkar Kolangade's avatar Omkar Kolangade Committed by Tyler Gunn
Browse files

IMS-VT: Do not create new surface when setting surface dimensions

Do not create a new surface when setting surface dimensions.

Bug: 27246093
Change-Id: I3f66594141d548680427a7579169647018ca7eb7
parent 9172c905
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);
            }
        }