summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGarik Badalyan <garikb@codeaurora.org>2014-02-05 16:56:01 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-02-11 15:03:18 -0800
commit15fb234af81f64b257d52e9700bbab018acb3cc7 (patch)
treec80284185e7036cf59a4ab5047c5b24232e6874a /src
parent0ee8c61e84e0ac5a6eb91d25a76e63a7f8b5abf7 (diff)
downloadpackages_apps_InCallUI-15fb234af81f64b257d52e9700bbab018acb3cc7.tar.gz
packages_apps_InCallUI-15fb234af81f64b257d52e9700bbab018acb3cc7.tar.bz2
packages_apps_InCallUI-15fb234af81f64b257d52e9700bbab018acb3cc7.zip
IMS-VT: Consider null call as non VT call.
Consider null call as non VT call. Change-Id: Iebc119daaf757de4d1454ff3b09b07ab0a99a4cf CRs-Fixed: 609702
Diffstat (limited to 'src')
-rw-r--r--src/com/android/incallui/CallUtils.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/incallui/CallUtils.java b/src/com/android/incallui/CallUtils.java
index f952ee18..9c3516ab 100644
--- a/src/com/android/incallui/CallUtils.java
+++ b/src/com/android/incallui/CallUtils.java
@@ -74,9 +74,7 @@ public class CallUtils {
}
public static boolean isVideoCall(Call call) {
- Preconditions.checkNotNull(call);
- Preconditions.checkNotNull(call.getCallDetails());
- return isVideoCall(call.getCallDetails().getCallType());
+ return call != null && isVideoCall(call.getCallDetails().getCallType());
}
public static String fromCallType(int callType) {