mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 05:27:28 +01:00
Collapsable manga summary/genre section
This commit is contained in:
@@ -80,6 +80,10 @@ inline fun View.visibleIf(block: () -> Boolean) {
|
||||
visibility = if (block()) View.VISIBLE else View.GONE
|
||||
}
|
||||
|
||||
inline fun View.toggle() {
|
||||
visibleIf { visibility == View.GONE }
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a round TextDrawable into an ImageView determined by input.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user