From f15a2837370b0852dffb464843f3f020ebffa94b Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Thu, 20 Nov 2014 15:18:20 -0800 Subject: Use REDIAL instead of CALL BACK for outgoing calls Bug: 17325604 Change-Id: Ida625d884088575760e394b2b58a4fc5b7126033 --- src/com/android/dialer/calllog/CallLogAdapter.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/com/android') diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 99bf38615..9528e4507 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -982,7 +982,8 @@ public class CallLogAdapter extends GroupingListAdapter } /*** - * Binds click handlers and intents to the voicemail, details and callback action buttons. + * Binds text titles, click handlers and intents to the voicemail, details and callback action + * buttons. * * @param views The call log item views. */ @@ -1005,6 +1006,14 @@ public class CallLogAdapter extends GroupingListAdapter } views.callBackButtonView.setVisibility(View.VISIBLE); views.callBackButtonView.setOnClickListener(mActionListener); + + final int titleId; + if (views.callType == Calls.VOICEMAIL_TYPE || views.callType == Calls.OUTGOING_TYPE) { + titleId = R.string.call_log_action_redial; + } else { + titleId = R.string.call_log_action_call_back; + } + views.callBackButtonView.setText(mContext.getString(titleId)); } else { // Number is not callable, so hide button. views.callBackButtonView.setTag(null); -- cgit v1.2.3