Fix setting tags on new tasks

pull/1061/head
Alex Baker 4 years ago
parent 3689793f91
commit 550d401e74

@ -334,7 +334,7 @@ class TaskEditViewModel @ViewModelInject constructor(
it.modificationDate = currentTimeMillis()
}
if (originalTags?.toHashSet() != selectedTags?.toHashSet()) {
if ((isNew && selectedTags?.isNotEmpty() == true) || originalTags?.toHashSet() != selectedTags?.toHashSet()) {
tagDao.applyTags(it, tagDataDao, selectedTags!!)
it.modificationDate = currentTimeMillis()
}

Loading…
Cancel
Save