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:
parent
464cf290cc
commit
1ef78c45d6
@ -164,6 +164,7 @@ class TagsArrayAdapter(private val tags: TagsList, private val resources: Resour
|
|||||||
node.checkBoxState = UNCHECKED
|
node.checkBoxState = UNCHECKED
|
||||||
}
|
}
|
||||||
node.updateCheckBoxCycleStyle(tags)
|
node.updateCheckBoxCycleStyle(tags)
|
||||||
|
node.vh?.checkBoxView?.refreshDrawableState()
|
||||||
}
|
}
|
||||||
update(this)
|
update(this)
|
||||||
for (ancestor in iterateAncestorsOf(this)) {
|
for (ancestor in iterateAncestorsOf(this)) {
|
||||||
@ -257,6 +258,7 @@ class TagsArrayAdapter(private val tags: TagsList, private val resources: Resour
|
|||||||
} else {
|
} else {
|
||||||
// tapping on a leaf node toggles the checkbox
|
// tapping on a leaf node toggles the checkbox
|
||||||
vh.checkBoxView.performClick()
|
vh.checkBoxView.performClick()
|
||||||
|
vh.checkBoxView.refreshDrawableState()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// long clicking a tag opens the add tag dialog with the current tag as the prefix
|
// long clicking a tag opens the add tag dialog with the current tag as the prefix
|
||||||
|
Loading…
Reference in New Issue
Block a user