summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Maxwell <maxwelb@google.com>2016-03-17 00:37:48 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-03-17 00:37:48 +0000
commit3d7939d20d92047e7ab068ad60901b3a0fd01c1e (patch)
treee5db62d116426c14172522733338a0bc9229a1dd
parent77c6c5582a7387fbf326c0089bdd56bd8027eb50 (diff)
parentfb7ff8268c1c03837a0f2bf2f2cb51326ebfeeb6 (diff)
Merge "Fixing securityException issue" into nyc-dev
-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());
}