From 56d0feb42bc3db7893135341c07ee8a8af1bb83d Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 6 Sep 2023 18:51:47 -0500 Subject: [PATCH] Show user name in permissions dialog --- .../conversations/ui/util/MucDetailsContextMenuHelper.java | 3 ++- src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/util/MucDetailsContextMenuHelper.java b/src/main/java/eu/siacs/conversations/ui/util/MucDetailsContextMenuHelper.java index 0289fa4a9..f8798f672 100644 --- a/src/main/java/eu/siacs/conversations/ui/util/MucDetailsContextMenuHelper.java +++ b/src/main/java/eu/siacs/conversations/ui/util/MucDetailsContextMenuHelper.java @@ -31,6 +31,7 @@ import eu.siacs.conversations.ui.ConversationFragment; import eu.siacs.conversations.ui.ConversationsActivity; import eu.siacs.conversations.ui.MucUsersActivity; import eu.siacs.conversations.ui.XmppActivity; +import eu.siacs.conversations.utils.UIHelper; import eu.siacs.conversations.xmpp.Jid; @@ -216,7 +217,7 @@ public final class MucDetailsContextMenuHelper { Pair choices = getPermissionsChoices(activity, conversation, user); int[] selected = new int[] { -1 }; new AlertDialog.Builder(activity) - .setTitle(R.string.manage_permission) + .setTitle(activity.getString(R.string.manage_permission_with_nick, UIHelper.getDisplayName(user))) .setSingleChoiceItems(choices.first, -1, (dialog, whichItem) -> { selected[0] = whichItem; }) diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index c98ed1eb5..42cb1a24d 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -879,6 +879,7 @@ This public channel has no participants. Invite your contacts or use the share button to distribute its Jabber ID. This private group chat has no participants. Manage privileges + Manage privileges for %s Search participants File too large Attach -- 2.45.2