diff options
author | Omkar Kolangade <omkark@codeaurora.org> | 2015-11-23 18:51:05 +0530 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2016-02-18 13:23:39 -0800 |
commit | ca7547b154cfa98e922601ac42ca61f77db39cd4 (patch) | |
tree | d3b1567dbb0f51e145b3d17d638758510428c0f8 | |
parent | 9172c905b311816eba1d24659f02facfab95b0b3 (diff) |
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
-rw-r--r-- | InCallUI/src/com/android/incallui/VideoCallFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/VideoCallFragment.java b/InCallUI/src/com/android/incallui/VideoCallFragment.java index 2c063034a..f80b04c51 100644 --- a/InCallUI/src/com/android/incallui/VideoCallFragment.java +++ b/InCallUI/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); } } |