diff options
author | Yorke Lee <yorkelee@google.com> | 2014-08-29 10:02:50 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-08-29 10:02:50 -0700 |
commit | 6b88e54849d5563386d51f5d338e37fc1e4b459f (patch) | |
tree | e30008ea88f5000f7e03fb64ac2ed646bbf49855 /src/com | |
parent | dc326a9e7ebcd9ef151d2c212a4afd467e18c322 (diff) | |
download | android_packages_apps_Dialer-6b88e54849d5563386d51f5d338e37fc1e4b459f.tar.gz android_packages_apps_Dialer-6b88e54849d5563386d51f5d338e37fc1e4b459f.tar.bz2 android_packages_apps_Dialer-6b88e54849d5563386d51f5d338e37fc1e4b459f.zip |
Fix layout inconsistencies due to add to contacts shortcut
Use the contact uri (which is stored in the call log and does not
depend on performing an asynchronous lookup) instead of the lookup
key to determine whether or not to show the add to contacts
shortcut.
Bug: 17316578
Change-Id: Ib7ba14eaa6eeeb42c0aea784ee663f673f67040b
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAdapter.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index d0c7632d9..23d053de8 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -1038,8 +1038,7 @@ public class CallLogAdapter extends GroupingListAdapter // Do not show badge in call log. if (!mIsCallLog) { final ViewStub stub = (ViewStub) view.findViewById(R.id.link_stub); - - if (TextUtils.isEmpty(info.lookupKey)) { + if (UriUtils.isEncodedContactUri(info.lookupUri)) { if (stub != null) { final View inflated = stub.inflate(); inflated.setVisibility(View.VISIBLE); |