From 005183fff98e2f96bc4a73edd1c985ff249bde58 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Thu, 19 Sep 2013 18:00:19 -0700 Subject: Don't allow calls to undialable numbers Bug: 10842865 Change-Id: Id48ffd5cb824f5dc1c84bfe938560a8edecb261d --- src/com/android/dialer/calllog/CallLogAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android') diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 8b7e27d5a..00f1abcf1 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -516,7 +516,7 @@ public class CallLogAdapter extends GroupingListAdapter views.primaryActionView.setTag( IntentProvider.getCallDetailIntentProvider( getCursor(), c.getPosition(), c.getLong(CallLogQuery.ID), count)); - } else { + } else if (PhoneNumberUtilsWrapper.canPlaceCallsTo(number, numberPresentation)) { // Sets the primary action to call the number. views.primaryActionView.setTag(IntentProvider.getReturnCallIntentProvider(number)); } -- cgit v1.2.3