Fixed suggested reply text

This commit is contained in:
M66B 2020-03-20 11:02:24 +01:00
parent 01b36bb8e9
commit adb892cfc2
1 changed files with 2 additions and 2 deletions

View File

@ -1958,7 +1958,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
LinearLayout.LayoutParams lparam = new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT); LinearLayout.LayoutParams lparam = new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
List<ConversationAction> actions = cactions.getConversationActions(); List<ConversationAction> actions = cactions.getConversationActions();
for (ConversationAction action : actions) { for (final ConversationAction action : actions) {
final RemoteAction raction = action.getAction(); final RemoteAction raction = action.getAction();
final CharSequence title = (raction == null final CharSequence title = (raction == null
? context.getString(R.string.title_conversation_action_reply, action.getTextReply()) ? context.getString(R.string.title_conversation_action_reply, action.getTextReply())
@ -1976,7 +1976,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
Intent reply = new Intent(context, ActivityCompose.class) Intent reply = new Intent(context, ActivityCompose.class)
.putExtra("action", "reply") .putExtra("action", "reply")
.putExtra("reference", message.id) .putExtra("reference", message.id)
.putExtra("text", title); .putExtra("text", action.getTextReply());
context.startActivity(reply); context.startActivity(reply);
} else } else
raction.getActionIntent().send(); raction.getActionIntent().send();