diff options
| author | Ravi Paluri <rpaluri@codeaurora.org> | 2015-11-23 18:51:05 +0530 |
|---|---|---|
| committer | doc HD <doc.divxm@gmail.com> | 2016-05-22 12:52:31 +0300 |
| commit | 54360dbdd32f237e2c32d6b642e26d64212492df (patch) | |
| tree | cfd5a60f74e8ee7fb355afe41695d17fd3e728cb | |
| parent | f1fdbbf50350e52c253652fe440217cd930ce97b (diff) | |
IMS-VT: Donot create new surface when setting surface dimensions
Donot create new surface when setting surface dimensions
Change-Id: I3f66594141d548680427a7579169647018ca7eb7
CRs-Fixed: 943894
| -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); } } |
