resolve merge conflicts of 7b82162 to stage-aosp-master Test: build Change-Id: I1c114d0bd88f0ee91c384a5983146b2cd08ae08f
am: 20dae868a8
Change-Id: I4f55c7a72bd5598e196ca0524c57a14fc5ae7256
diff --git a/src/com/android/services/telephony/TelecomAccountRegistry.java b/src/com/android/services/telephony/TelecomAccountRegistry.java
index 02215d5..b2e9984 100644
--- a/src/com/android/services/telephony/TelecomAccountRegistry.java
+++ b/src/com/android/services/telephony/TelecomAccountRegistry.java
@@ -44,6 +44,7 @@
import android.telephony.TelephonyManager;
import android.text.TextUtils;
+import com.android.ims.ImsManager;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.PhoneFactory;
import com.android.phone.PhoneGlobals;
@@ -191,6 +192,12 @@
capabilities |= PhoneAccount.CAPABILITY_VIDEO_CALLING;
}
+ boolean isVideoEnabledByPlatform =
+ ImsManager.isVtEnabledByPlatform(mPhone.getContext());
+ if (isVideoEnabledByPlatform) {
+ capabilities |= PhoneAccount.CAPABILITY_SUPPORTS_VIDEO_CALLING;
+ }
+
mIsVideoPresenceSupported = isCarrierVideoPresenceSupported();
if (mIsVideoCapable && mIsVideoPresenceSupported) {
capabilities |= PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE;