From 7f8bfd759fed17ba10204f5f5dc20dc0248d2c35 Mon Sep 17 00:00:00 2001 From: len Date: Sat, 21 Jan 2017 20:31:25 +0100 Subject: [PATCH] Fix filter input text introducing a new line. Also fix filter drawer clicks propagated to the views below --- .../kanade/tachiyomi/ui/catalogue/filter/TextItem.kt | 1 - app/src/main/res/layout/catalogue_drawer_content.xml | 10 ++++++---- app/src/main/res/layout/navigation_view_text.xml | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TextItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TextItem.kt index 4056190eb..9d4321dcb 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TextItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TextItem.kt @@ -23,7 +23,6 @@ open class TextItem(val filter: Filter.Text) : AbstractFlexibleItem, holder: Holder, position: Int, payloads: List?) { - holder.wrapper.visibility = if (filter.name.isEmpty()) View.GONE else View.VISIBLE holder.wrapper.hint = filter.name holder.edit.setText(filter.state) holder.edit.addTextChangedListener(object : SimpleTextWatcher() { diff --git a/app/src/main/res/layout/catalogue_drawer_content.xml b/app/src/main/res/layout/catalogue_drawer_content.xml index 1eced0573..4e04cc655 100644 --- a/app/src/main/res/layout/catalogue_drawer_content.xml +++ b/app/src/main/res/layout/catalogue_drawer_content.xml @@ -1,8 +1,10 @@ - +