summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGarik Badalyan <garikb@codeaurora.org>2014-01-14 09:27:40 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-01-26 12:42:01 -0800
commit1dd4db1355b2386195b029c4a8d8e558bf7a3aa7 (patch)
tree04a2a3533f8521cb980e61e463dc05acd681bc88 /src
parent217d073a7f798cdb8a7a3121963bdb198cc1b2df (diff)
downloadpackages_apps_InCallUI-1dd4db1355b2386195b029c4a8d8e558bf7a3aa7.tar.gz
packages_apps_InCallUI-1dd4db1355b2386195b029c4a8d8e558bf7a3aa7.tar.bz2
packages_apps_InCallUI-1dd4db1355b2386195b029c4a8d8e558bf7a3aa7.zip
IMS-VT: Don't hide video call widgets in AVP retry mode.
Telephony hides video call widgets when the call is in AVP retry mode (call type is VT_NO_DIR). This impacts early media feature, since camera and far end preview won't be visible. Don't hide video call widgets in AVP retry mode. Change-Id: I79884439a6ac277d3eb4f65b4554711bc99e756d CRs-Fixed: 597832
Diffstat (limited to 'src')
-rw-r--r--src/com/android/incallui/CallUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/incallui/CallUtils.java b/src/com/android/incallui/CallUtils.java
index bcf942b8..f952ee18 100644
--- a/src/com/android/incallui/CallUtils.java
+++ b/src/com/android/incallui/CallUtils.java
@@ -37,7 +37,8 @@ public class CallUtils {
public static boolean isVideoCall(int callType) {
return callType == CallDetails.CALL_TYPE_VT ||
callType == CallDetails.CALL_TYPE_VT_TX ||
- callType == CallDetails.CALL_TYPE_VT_RX;
+ callType == CallDetails.CALL_TYPE_VT_RX ||
+ callType == CallDetails.CALL_TYPE_VT_NODIR;
}
public static int getCallType(Call call) {
@@ -98,8 +99,7 @@ public class CallUtils {
if (call == null) return false;
Preconditions.checkNotNull(call.getCallDetails());
final int callType = call.getCallDetails().getCallType();
- final boolean isImsVideoCall = isVideoCall(call) ||
- (callType == CallDetails.CALL_TYPE_VT_NODIR);
+ final boolean isImsVideoCall = isVideoCall(call);
final boolean isImsVoiceCall = (callType == CallDetails.CALL_TYPE_VOICE
&& call.getCallDetails().getCallDomain() == CallDetails.CALL_DOMAIN_PS);
return isImsVideoCall || isImsVoiceCall;