Merge pull request #1765 from kiwix/feature/macgills/1636-hide-inactive-tags

#1636 If the ZIM file tag (Vid,Pic) doesn't fit, additionally the tex…
This commit is contained in:
Seán Mac Gillicuddy 2020-02-12 09:07:47 +00:00 committed by GitHub
commit fe5a94fe80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,5 +62,6 @@ class TagsView(context: Context, attrs: AttributeSet) : ChipGroup(context, attrs
private fun Chip.selectBy(criteria: Boolean) {
isChecked = criteria
isEnabled = criteria
visibility = if (criteria) VISIBLE else GONE
}
}