diff options
author | Sai Cheemalapati <saicheems@google.com> | 2014-07-24 15:35:25 -0700 |
---|---|---|
committer | Sai Cheemalapati <saicheems@google.com> | 2014-07-24 15:35:25 -0700 |
commit | ffb26eef68f526926ca1cf8562cc9cf07a32a45c (patch) | |
tree | 41b7ed207526849db1b677e45ad8e1c01fdbf276 /src | |
parent | 69c247f619fd2f2474070bdbcec32b78f6444149 (diff) |
Hiding reported entries from call log (1/2).
Reported entries no longer show a name/image in call log or incall ui.
Bug: 11150383
Change-Id: I8e221760b96c8070eface2259bdaa4acff1f0f1a
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/calllog/ContactInfoHelper.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java index f09c3657e..1f99a8820 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java @@ -231,7 +231,11 @@ public class ContactInfoHelper { } else if (mCachedNumberLookupService != null) { CachedContactInfo cacheInfo = mCachedNumberLookupService.lookupCachedContactFromNumber(mContext, number); - info = cacheInfo != null ? cacheInfo.getContactInfo() : null; + if (cacheInfo != null) { + info = cacheInfo.getContactInfo().isBadData ? null : cacheInfo.getContactInfo(); + } else { + info = null; + } } return info; } |