diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-09-11 01:11:26 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-09-11 01:11:26 +0000 |
commit | 46f4867780526b9518e6c42a530535ece7ccec7c (patch) | |
tree | 7e86ffae5755cf7fffb2ee66abf255991967b1af | |
parent | a060bb9eac9ea333b4a3e3ff46631b578b9cd6ef (diff) | |
parent | 7b4e91971001cc149743e97ae77381ef528073a9 (diff) |
Merge "Do not do reverse lookup if presentation does not allow it." into klp-dev
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index 07978ff65..6c8056bd6 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -253,9 +253,12 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> // because the contactinfocache pre-massages the data into the ui fields. // Need to do massaging outside of contactinfocache. if (entry.label == null) { - // Name not found. Try lookup. - Log.d(TAG, "Contact lookup. Contact provider miss. Searching people api."); - lookupPhoneNumber(identification.getNumber(), isPrimary, isConference); + if (identification.getNumberPresentation() == Call.PRESENTATION_ALLOWED) { + // Name not found. Try lookup. + Log.d(TAG, "Contact lookup. Contact provider miss. Searching people " + + "api."); + lookupPhoneNumber(identification.getNumber(), isPrimary, isConference); + } } else { Log.d(TAG, "Contact lookup. Found in contact provider: " + entry); updateContactEntry(entry, isPrimary, isConference); |