mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Improve dialog when un-ignoring user. Add title and change button labels
This commit is contained in:
parent
fe0332957b
commit
04045d2b30
1 changed files with 3 additions and 2 deletions
|
@ -80,11 +80,12 @@ class VectorSettingsIgnoredUsersFragment @Inject constructor(
|
|||
|
||||
override fun onUserIdClicked(userId: String) {
|
||||
MaterialAlertDialogBuilder(requireActivity())
|
||||
.setTitle(R.string.room_participants_action_unignore_title)
|
||||
.setMessage(getString(R.string.settings_unignore_user, userId))
|
||||
.setPositiveButton(R.string.yes) { _, _ ->
|
||||
.setPositiveButton(R.string.unignore) { _, _ ->
|
||||
viewModel.handle(IgnoredUsersAction.UnIgnore(userId))
|
||||
}
|
||||
.setNegativeButton(R.string.no, null)
|
||||
.setNegativeButton(R.string.action_cancel, null)
|
||||
.show()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue