From e76fb7a52431e2ea726c6e832cbd95b62d87d887 Mon Sep 17 00:00:00 2001 From: len Date: Sun, 15 Jan 2017 01:08:35 +0100 Subject: [PATCH] Minor changes --- .../java/eu/kanade/tachiyomi/ui/catalogue/filter/HeaderItem.kt | 3 +-- .../eu/kanade/tachiyomi/ui/catalogue/filter/SeparatorItem.kt | 2 +- .../eu/kanade/tachiyomi/ui/catalogue/filter/TriStateItem.kt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/HeaderItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/HeaderItem.kt index 6e7b27f48b..6302e204d5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/HeaderItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/HeaderItem.kt @@ -24,7 +24,6 @@ class HeaderItem(val filter: Filter.Header) : AbstractHeaderItem, holder: Holder, position: Int, payloads: List?) { val view = holder.itemView as TextView - view.visibility = if (filter.name.isEmpty()) View.GONE else View.VISIBLE view.text = filter.name } @@ -40,5 +39,5 @@ class HeaderItem(val filter: Filter.Header) : AbstractHeaderItem) : FlexibleViewHolder(view, adapter) + class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/SeparatorItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/SeparatorItem.kt index 906834e75c..10f25505aa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/SeparatorItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/SeparatorItem.kt @@ -37,5 +37,5 @@ class SeparatorItem(val filter: Filter.Separator) : AbstractHeaderItem) : FlexibleViewHolder(view, adapter) + class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) } \ No newline at end of file diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TriStateItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TriStateItem.kt index d08173e4bd..fe3fae3a74 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TriStateItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TriStateItem.kt @@ -61,7 +61,7 @@ open class TriStateItem(val filter: Filter.TriState) : AbstractFlexibleItem) : FlexibleViewHolder(view, adapter) { + class Holder(view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter) { val text = itemView.findViewById(TR.id.nav_view_item) as CheckedTextView