diff options
-rw-r--r-- | src/com/android/incallui/VideoCallFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/incallui/VideoCallFragment.java b/src/com/android/incallui/VideoCallFragment.java index c7de222e..2a556a20 100644 --- a/src/com/android/incallui/VideoCallFragment.java +++ b/src/com/android/incallui/VideoCallFragment.java @@ -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); } } |