diff options
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogListItemViewHolder.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogListItemViewHolder.java | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/com/android/dialer/calllog/CallLogListItemViewHolder.java b/src/com/android/dialer/calllog/CallLogListItemViewHolder.java index 4fa65613e..72cbdba72 100644 --- a/src/com/android/dialer/calllog/CallLogListItemViewHolder.java +++ b/src/com/android/dialer/calllog/CallLogListItemViewHolder.java @@ -72,6 +72,7 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder { public View voicemailButtonView; public View createNewContactButtonView; public View addToExistingContactButtonView; + public View sendMessageView; public View detailsButtonView; public View reportButtonView; @@ -218,35 +219,26 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder { ViewStub stub = (ViewStub) rootView.findViewById(R.id.call_log_entry_actions_stub); if (stub != null) { actionsView = (ViewGroup) stub.inflate(); - } - if (videoCallButtonView == null) { videoCallButtonView = actionsView.findViewById(R.id.video_call_action); videoCallButtonView.setOnClickListener(mActionListener); - } - if (voicemailButtonView == null) { voicemailButtonView = actionsView.findViewById(R.id.voicemail_action); voicemailButtonView.setOnClickListener(mActionListener); - } - if (createNewContactButtonView == null) { createNewContactButtonView = actionsView.findViewById(R.id.create_new_contact_action); createNewContactButtonView.setOnClickListener(mActionListener); - } - if (addToExistingContactButtonView == null) { addToExistingContactButtonView = actionsView.findViewById(R.id.add_to_existing_contact_action); addToExistingContactButtonView.setOnClickListener(mActionListener); - } - if (detailsButtonView == null) { + sendMessageView = actionsView.findViewById(R.id.send_message_action); + sendMessageView.setOnClickListener(mActionListener); + detailsButtonView = actionsView.findViewById(R.id.details_action); detailsButtonView.setOnClickListener(mActionListener); - } - if (reportButtonView == null) { reportButtonView = actionsView.findViewById(R.id.report_action); reportButtonView.setOnClickListener(new View.OnClickListener() { @Override @@ -344,6 +336,8 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder { addToExistingContactButtonView.setVisibility(View.GONE); } + sendMessageView.setTag(IntentProvider.getSendSmsIntentProvider(number)); + mCallLogListItemHelper.setActionContentDescriptions(this); } |