~singpolyma/cheogram-android

56d0feb42bc3db7893135341c07ee8a8af1bb83d — Stephen Paul Weber 8 months ago 3bc5dd8
Show user name in permissions dialog
M src/main/java/eu/siacs/conversations/ui/util/MucDetailsContextMenuHelper.java => src/main/java/eu/siacs/conversations/ui/util/MucDetailsContextMenuHelper.java +2 -1
@@ 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<CharSequence[], Integer[]> 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;
                    })

M src/main/res/values/strings.xml => src/main/res/values/strings.xml +1 -0
@@ 879,6 879,7 @@
    <string name="no_users_hint_channel">This public channel has no participants. Invite your contacts or use the share button to distribute its Jabber ID.</string>
    <string name="no_users_hint_group_chat">This private group chat has no participants.</string>
    <string name="manage_permission">Manage privileges</string>
    <string name="manage_permission_with_nick">Manage privileges for %s</string>
    <string name="search_participants">Search participants</string>
    <string name="file_too_large">File too large</string>
    <string name="attach">Attach</string>