0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

fix: inconsistent tag checkbox color

This commit is contained in:
leobugeja 2024-05-10 00:35:43 +01:00 committed by David Allison
parent 464cf290cc
commit 1ef78c45d6

View File

@ -164,6 +164,7 @@ class TagsArrayAdapter(private val tags: TagsList, private val resources: Resour
node.checkBoxState = UNCHECKED
}
node.updateCheckBoxCycleStyle(tags)
node.vh?.checkBoxView?.refreshDrawableState()
}
update(this)
for (ancestor in iterateAncestorsOf(this)) {
@ -257,6 +258,7 @@ class TagsArrayAdapter(private val tags: TagsList, private val resources: Resour
} else {
// tapping on a leaf node toggles the checkbox
vh.checkBoxView.performClick()
vh.checkBoxView.refreshDrawableState()
}
}
// long clicking a tag opens the add tag dialog with the current tag as the prefix