From 5a9cd71b8ea670cd7c9aebd3dba27ea8cbe769df Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 7 May 2015 17:01:41 -0700 Subject: Add call log list item actions for adding contacts. + Add two actions: create new contact and add to existing contact. + Pass in ContactInfo to the CallLogListItem's ViewHolder. Bug: 20433758 Change-Id: Ic1387b33ebe027fa6ddbdb971996fc7d4c4ac88b --- src/com/android/dialer/calllog/CallLogAdapter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/com/android/dialer/calllog/CallLogAdapter.java') diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 8e22834e5..77b2a4353 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -21,7 +21,6 @@ import android.content.Intent; import android.content.res.Resources; import android.database.Cursor; import android.net.Uri; -import android.provider.ContactsContract.CommonDataKinds.Phone; import android.support.v7.widget.RecyclerView.ViewHolder; import android.telecom.PhoneAccountHandle; import android.telephony.PhoneNumberUtils; @@ -381,7 +380,7 @@ public class CallLogAdapter extends GroupingListAdapter final PhoneCallDetails details; - views.reported = info.isBadData; + views.info = info; // The entry can only be reported as invalid if it has a valid ID and the source of the // entry supports marking entries as invalid. @@ -414,7 +413,6 @@ public class CallLogAdapter extends GroupingListAdapter views.setPhoto(photoId, photoUri, lookupUri, nameForDefaultImage, isVoicemailNumber, mContactInfoHelper.isBusiness(info.sourceType)); - views.quickContactView.setPrioritizedMimeType(Phone.CONTENT_ITEM_TYPE); views.updateCallButton(); -- cgit v1.2.3