Browse Source

Fix filter input text introducing a new line. Also fix filter drawer clicks propagated to the views below

len 8 years ago
parent
commit
7f8bfd759f

+ 0 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/filter/TextItem.kt

@@ -23,7 +23,6 @@ open class TextItem(val filter: Filter.Text) : AbstractFlexibleItem<TextItem.Hol
     }
 
     override fun bindViewHolder(adapter: FlexibleAdapter<*>, holder: Holder, position: Int, payloads: List<Any?>?) {
-        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() {

+ 6 - 4
app/src/main/res/layout/catalogue_drawer_content.xml

@@ -1,8 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-              android:orientation="vertical"
-              android:layout_width="match_parent"
-              android:layout_height="match_parent">
+<LinearLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:orientation="vertical"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:clickable="true">
 
     <LinearLayout
         android:layout_width="match_parent"

+ 1 - 0
app/src/main/res/layout/navigation_view_text.xml

@@ -20,6 +20,7 @@
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:maxLines="1"
+            android:inputType="text"
             android:imeOptions="actionDone"
             android:textAppearance="@style/TextAppearance.AppCompat.Body2" />