summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-09-19 18:00:19 -0700
committerYorke Lee <yorkelee@google.com>2013-09-19 18:00:19 -0700
commit005183fff98e2f96bc4a73edd1c985ff249bde58 (patch)
treedbca4e302a801723bdd0b8e0b07eeac76bb7a035
parent5b2e21098d84e94fd629e5e07c3bbb66bf9b5d95 (diff)
Don't allow calls to undialable numbers
Bug: 10842865 Change-Id: Id48ffd5cb824f5dc1c84bfe938560a8edecb261d
-rw-r--r--src/com/android/dialer/calllog/CallLogAdapter.java2
1 files changed, 1 insertions, 1 deletions
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));
}