summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorBrandon Maxwell <maxwelb@google.com>2016-03-17 19:32:07 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-03-17 19:32:07 +0000
commit1d8b604d29ffc15e1df72b0744e33ce9bf71d796 (patch)
treef28d9f1615b2e67490da0a8c1a820c9e68e81d66 /InCallUI
parentdee3f94ef48e1788519fce0b16beb14d41e17df7 (diff)
parent625cc92c3dbfec8d8b6e873cfeb54166f4d2b1f3 (diff)
Merge "Fixing securityException issue" into nyc-dev am: 3d7939d
am: 625cc92 * commit '625cc92c3dbfec8d8b6e873cfeb54166f4d2b1f3': Fixing securityException issue
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallerInfoUtils.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfoUtils.java b/InCallUI/src/com/android/incallui/CallerInfoUtils.java
index aff39566d..289b652fc 100644
--- a/InCallUI/src/com/android/incallui/CallerInfoUtils.java
+++ b/InCallUI/src/com/android/incallui/CallerInfoUtils.java
@@ -9,13 +9,13 @@ import android.telecom.TelecomManager;
import android.text.TextUtils;
import android.util.Log;
-import com.android.contacts.common.compat.telecom.TelecomManagerCompat;
import com.android.contacts.common.model.Contact;
import com.android.contacts.common.model.ContactLoader;
import com.android.dialer.R;
import com.android.dialer.calllog.ContactInfo;
import com.android.dialer.service.CachedNumberLookupService;
import com.android.dialer.service.CachedNumberLookupService.CachedContactInfo;
+import com.android.dialer.util.TelecomUtil;
import java.util.Arrays;
@@ -118,8 +118,7 @@ public class CallerInfoUtils {
}
public static boolean isVoiceMailNumber(Context context, Call call) {
- return TelecomManagerCompat.isVoiceMailNumber(
- (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE),
+ return TelecomUtil.isVoicemailNumber(context,
call.getTelecomCall().getDetails().getAccountHandle(),
call.getNumber());
}