summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOya Masafumi <masafumi.x.oya@sony.com>2019-04-16 14:16:15 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-04-16 14:16:15 -0700
commit12a51def3cfc8b086336b2125034167c6c158072 (patch)
treeb2e934a753820eb1f2ef4685aa1bea9ba18e4ec4
parentea194aec1ee5dc3981097207730e7168d7c27334 (diff)
parentc1c93761a36de5411ffe4b61f8b9d9da8ef9c816 (diff)
Merge "Fix issue that the hold label is not shown during remote video holding"
am: c1c93761a3 Change-Id: I0833a15a8920489d400beda60acbf921ee226c15
-rw-r--r--java/com/android/incallui/video/impl/VideoCallFragment.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/java/com/android/incallui/video/impl/VideoCallFragment.java b/java/com/android/incallui/video/impl/VideoCallFragment.java
index 901facb01..db4806a52 100644
--- a/java/com/android/incallui/video/impl/VideoCallFragment.java
+++ b/java/com/android/incallui/video/impl/VideoCallFragment.java
@@ -696,9 +696,17 @@ public class VideoCallFragment extends Fragment
videoCallScreenDelegate.getLocalVideoSurfaceTexture().attachToTextureView(previewTextureView);
videoCallScreenDelegate.getRemoteVideoSurfaceTexture().attachToTextureView(remoteTextureView);
- this.isRemotelyHeld = isRemotelyHeld;
+ boolean updateRemoteOffView = false;
if (this.shouldShowRemote != shouldShowRemote) {
this.shouldShowRemote = shouldShowRemote;
+ updateRemoteOffView = true;
+ }
+ if (this.isRemotelyHeld != isRemotelyHeld) {
+ this.isRemotelyHeld = isRemotelyHeld;
+ updateRemoteOffView = true;
+ }
+
+ if (updateRemoteOffView) {
updateRemoteOffView();
}
if (this.shouldShowPreview != shouldShowPreview) {