improve message selection mode title

This commit is contained in:
kosyak 2023-09-15 17:38:19 +02:00
parent 5d30742a13
commit e3ce350077
2 changed files with 2 additions and 1 deletions

View file

@ -2287,7 +2287,7 @@ public class ConversationFragment extends XmppFragment
if (selectedMessages.size() == 0) { if (selectedMessages.size() == 0) {
selectionActionMode.finish(); selectionActionMode.finish();
} else { } else {
selectionActionMode.setTitle(selectedMessages.size() + ""); selectionActionMode.setTitle(getString(R.string.message_selection_title, selectedMessages.size()));
} }
this.messageListAdapter.notifyDataSetChanged(); this.messageListAdapter.notifyDataSetChanged();

View file

@ -1046,4 +1046,5 @@
<string name="filter">filter</string> <string name="filter">filter</string>
<string name="could_not_create_file">could_not_create_file</string> <string name="could_not_create_file">could_not_create_file</string>
<string name="muc_private_conversation_title">%1$s (%2$s)</string> <string name="muc_private_conversation_title">%1$s (%2$s)</string>
<string name="message_selection_title">%1$d selected</string>
</resources> </resources>