mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 20:50:51 +01:00
Minor changes
This commit is contained in:
parent
90a99dde1f
commit
e76fb7a524
3 changed files with 3 additions and 4 deletions
|
@ -24,7 +24,6 @@ class HeaderItem(val filter: Filter.Header) : AbstractHeaderItem<HeaderItem.Hold
|
||||||
|
|
||||||
override fun bindViewHolder(adapter: FlexibleAdapter<*>, holder: Holder, position: Int, payloads: List<Any?>?) {
|
override fun bindViewHolder(adapter: FlexibleAdapter<*>, holder: Holder, position: Int, payloads: List<Any?>?) {
|
||||||
val view = holder.itemView as TextView
|
val view = holder.itemView as TextView
|
||||||
view.visibility = if (filter.name.isEmpty()) View.GONE else View.VISIBLE
|
|
||||||
view.text = filter.name
|
view.text = filter.name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,5 +39,5 @@ class HeaderItem(val filter: Filter.Header) : AbstractHeaderItem<HeaderItem.Hold
|
||||||
return filter.hashCode()
|
return filter.hashCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
class Holder(view: View, val adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter)
|
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter)
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,5 +37,5 @@ class SeparatorItem(val filter: Filter.Separator) : AbstractHeaderItem<Separator
|
||||||
return filter.hashCode()
|
return filter.hashCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
class Holder(view: View, val adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter)
|
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter)
|
||||||
}
|
}
|
|
@ -61,7 +61,7 @@ open class TriStateItem(val filter: Filter.TriState) : AbstractFlexibleItem<TriS
|
||||||
return filter.hashCode()
|
return filter.hashCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
class Holder(view: View, val adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) {
|
||||||
|
|
||||||
val text = itemView.findViewById(TR.id.nav_view_item) as CheckedTextView
|
val text = itemView.findViewById(TR.id.nav_view_item) as CheckedTextView
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue