mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-14 18:21:57 +00:00
Prevent blank tag addition and remove 'path "name" is required' error
This commit is contained in:
parent
0abbdc80dc
commit
754e0b0537
1 changed files with 5 additions and 0 deletions
|
|
@ -205,6 +205,11 @@ class TaskFilterDialog(context: Context, private val repository: TagRepository,
|
|||
}
|
||||
|
||||
private fun stopEditing() {
|
||||
// Filter out tags with empty names
|
||||
val tagsToRemove = createdTags.values.filter { it.name.isBlank() }
|
||||
createdTags.values.removeAll(tagsToRemove.toSet())
|
||||
tags.removeAll(tagsToRemove)
|
||||
|
||||
isEditingTags = false
|
||||
binding.tagsList.removeAllViews()
|
||||
createTagViews()
|
||||
|
|
|
|||
Loading…
Reference in a new issue