summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi Paluri <rpaluri@codeaurora.org>2015-11-23 18:51:05 +0530
committerSteve Kondik <steve@cyngn.com>2016-05-20 23:09:14 -0700
commita85e38baae536868d447108cac64aa5ec2e5851e (patch)
tree106400bf5c0d5ec59bd84be26b63d7b4516ba4d5
parent5ef46415f2964a1ae949dc38b8fd89b310d3f176 (diff)
downloadpackages_apps_InCallUI-a85e38baae536868d447108cac64aa5ec2e5851e.tar.gz
packages_apps_InCallUI-a85e38baae536868d447108cac64aa5ec2e5851e.tar.bz2
packages_apps_InCallUI-a85e38baae536868d447108cac64aa5ec2e5851e.zip
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.java5
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);
}
}