summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOya Masafumi <masafumi.x.oya@sony.com>2018-05-31 12:25:04 +0900
committerMichael Bestas <mkbestas@lineageos.org>2020-05-24 20:09:49 +0300
commit03a214c79bf5670439dde73c73e7166e38ec8981 (patch)
tree71ec33dde9687697583e59ad0e450c5adae71402
parent452c34d53f1f6718cab87fec9144d7a21b09b5f4 (diff)
downloadandroid_packages_apps_Dialer-03a214c79bf5670439dde73c73e7166e38ec8981.tar.gz
android_packages_apps_Dialer-03a214c79bf5670439dde73c73e7166e38ec8981.tar.bz2
android_packages_apps_Dialer-03a214c79bf5670439dde73c73e7166e38ec8981.zip
Fix issue that the hold label is not shown during remote video holding
Hold label is not shown even if a remote party holds a video call because VideoCallFragment#updateRemoteOffView is not called. A condition checking shouldShowRemote whether to call the method was added in #I4be3488. But shouldShowRemote is not updated in this case. To solve this issue, checks isRemotelyHeld that indicates hold status of remote party and calls #updateRemoteOffView if it is updated. Test: manual - Check that the hold label is shown when a remote party holds a video call Bug: 110244504 Change-Id: I2dfac18b1a913de50adfbe4cc76f073678f5e186
-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 8203c6a2d..9d9f5bf3f 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) {