Probably fix some weird bug when adding a tag
This commit is contained in:
parent
03dbd617f9
commit
3c24137810
1 changed files with 2 additions and 2 deletions
|
|
@ -234,10 +234,10 @@ class EditMangaDialog : DialogController {
|
|||
MaterialAlertDialogBuilder(context)
|
||||
.setTitle(R.string.add_tag)
|
||||
.setTextInput {
|
||||
text = it.trimOrNull()
|
||||
newTag = it.trimOrNull()
|
||||
}
|
||||
.setPositiveButton(android.R.string.ok) { _, _ ->
|
||||
if (newTag != null) setChips(items + listOf(newTag))
|
||||
if (newTag != null) setChips(items + listOfNotNull(newTag))
|
||||
}
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.show()
|
||||
|
|
|
|||
Loading…
Reference in a new issue