summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-09-26 17:05:12 -0700
committerYorke Lee <yorkelee@google.com>2013-09-26 17:05:12 -0700
commita8dab0a58e3145adfc27f75f563732e8589674ed (patch)
tree7659a8c118a985b3b714095d8a528ee23340e919
parent36df59e08b1d886da71f90ea4aff97533d43227e (diff)
Fix for private numbers in call shortcut being dialable
Call log views were being recycled and reusing the tagged intent in the recycled view. Bug: 10953465 Change-Id: Iff1d2276622bda05486efd092abac1a55b7441f1
-rw-r--r--src/com/android/dialer/calllog/CallLogAdapter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java
index b2493cf97..86540efbb 100644
--- a/src/com/android/dialer/calllog/CallLogAdapter.java
+++ b/src/com/android/dialer/calllog/CallLogAdapter.java
@@ -534,6 +534,8 @@ public class CallLogAdapter extends GroupingListAdapter
} else if (PhoneNumberUtilsWrapper.canPlaceCallsTo(number, numberPresentation)) {
// Sets the primary action to call the number.
views.primaryActionView.setTag(IntentProvider.getReturnCallIntentProvider(number));
+ } else {
+ views.primaryActionView.setTag(null);
}
// Store away the voicemail information so we can play it directly.