Loading src/com/android/server/telecom/CallsManager.java +5 −4 Original line number Diff line number Diff line Loading @@ -2031,7 +2031,8 @@ public class CallsManager extends Call.ListenerBase + "callId=%s, callRedirectionAppName=%s", call.getId(), callRedirectionApp); showRedirectionDialog(call.getId()); showRedirectionDialog(call.getId(), mRoleManagerAdapter.getApplicationLabelForPackageName(callRedirectionApp)); } else { call.setTargetPhoneAccount(phoneAccountHandle); placeOutgoingCall(call, handle, gatewayInfo, speakerphoneOn, videoState); Loading @@ -2050,7 +2051,7 @@ public class CallsManager extends Call.ListenerBase * content on the screen. * @param callId The ID of the call to show the redirection dialog for. */ private void showRedirectionDialog(@NonNull String callId) { private void showRedirectionDialog(@NonNull String callId, @NonNull CharSequence appName) { AlertDialog confirmDialog = new AlertDialog.Builder(mContext).create(); LayoutInflater layoutInflater = LayoutInflater.from(mContext); View dialogView = layoutInflater.inflate(R.layout.call_redirection_confirm_dialog, null); Loading @@ -2072,8 +2073,8 @@ public class CallsManager extends Call.ListenerBase }); Button buttonSecondLine = (Button) dialogView.findViewById(R.id.buttonSecondLine); buttonSecondLine.setText(mContext.getText( R.string.alert_place_outgoing_call_with_redirection)); buttonSecondLine.setText(mContext.getString( R.string.alert_place_outgoing_call_with_redirection, appName)); buttonSecondLine.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Loading Loading
src/com/android/server/telecom/CallsManager.java +5 −4 Original line number Diff line number Diff line Loading @@ -2031,7 +2031,8 @@ public class CallsManager extends Call.ListenerBase + "callId=%s, callRedirectionAppName=%s", call.getId(), callRedirectionApp); showRedirectionDialog(call.getId()); showRedirectionDialog(call.getId(), mRoleManagerAdapter.getApplicationLabelForPackageName(callRedirectionApp)); } else { call.setTargetPhoneAccount(phoneAccountHandle); placeOutgoingCall(call, handle, gatewayInfo, speakerphoneOn, videoState); Loading @@ -2050,7 +2051,7 @@ public class CallsManager extends Call.ListenerBase * content on the screen. * @param callId The ID of the call to show the redirection dialog for. */ private void showRedirectionDialog(@NonNull String callId) { private void showRedirectionDialog(@NonNull String callId, @NonNull CharSequence appName) { AlertDialog confirmDialog = new AlertDialog.Builder(mContext).create(); LayoutInflater layoutInflater = LayoutInflater.from(mContext); View dialogView = layoutInflater.inflate(R.layout.call_redirection_confirm_dialog, null); Loading @@ -2072,8 +2073,8 @@ public class CallsManager extends Call.ListenerBase }); Button buttonSecondLine = (Button) dialogView.findViewById(R.id.buttonSecondLine); buttonSecondLine.setText(mContext.getText( R.string.alert_place_outgoing_call_with_redirection)); buttonSecondLine.setText(mContext.getString( R.string.alert_place_outgoing_call_with_redirection, appName)); buttonSecondLine.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Loading