Report spam from

This commit is contained in:
M66B 2019-01-30 08:00:49 +00:00
parent 4596f7c51a
commit 811fbfc9b4
2 changed files with 3 additions and 1 deletions

View File

@ -1555,8 +1555,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
private void onMenuJunk(final ActionData data) {
String who = MessageHelper.formatAddresses(data.message.from);
new DialogBuilderLifecycle(context, owner)
.setMessage(context.getResources().getQuantityString(R.plurals.title_ask_spam, 1, 1))
.setMessage(context.getString(R.string.title_ask_spam_who, who))
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {

View File

@ -57,6 +57,7 @@
<item quantity="one">Report %1$d message as spam?</item>
<item quantity="other">Report %1$d messages as spam?</item>
</plurals>
<string name="title_ask_spam_who">Report message from %1$s as spam?</string>
<string name="title_notification_failed">\'%1$s\' failed</string>