From fc1f290b855820516a0a4d7fffe8f55e6fe191e0 Mon Sep 17 00:00:00 2001 From: Carlos Date: Sun, 18 Feb 2018 13:36:34 -0500 Subject: [PATCH] removed extra blank lines (#1259) fixed results not showing for jellybean made edit text max line 1 to prevent it newlines being added and moving the edit text into the list view --- .../tachiyomi/ui/manga/track/TrackSearchAdapter.kt | 5 +---- app/src/main/res/layout/track_search_dialog.xml | 3 ++- app/src/main/res/layout/track_search_item.xml | 13 +++++++++++-- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchAdapter.kt index fe9e0012c..c11a9bdd0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchAdapter.kt @@ -6,8 +6,8 @@ import android.view.ViewGroup import android.widget.ArrayAdapter import com.bumptech.glide.load.engine.DiskCacheStrategy import eu.kanade.tachiyomi.R -import eu.kanade.tachiyomi.data.track.model.TrackSearch import eu.kanade.tachiyomi.data.glide.GlideApp +import eu.kanade.tachiyomi.data.track.model.TrackSearch import eu.kanade.tachiyomi.util.gone import eu.kanade.tachiyomi.util.inflate import kotlinx.android.synthetic.main.track_search_item.view.* @@ -53,7 +53,6 @@ class TrackSearchAdapter(context: Context) .centerCrop() .into(view.track_search_cover) - if (track.publishing_status.isNullOrBlank()) { view.track_search_status.gone() view.track_search_status_result.gone() @@ -74,9 +73,7 @@ class TrackSearchAdapter(context: Context) } else { view.track_search_start_result.text = track.start_date } - } } } - } \ No newline at end of file diff --git a/app/src/main/res/layout/track_search_dialog.xml b/app/src/main/res/layout/track_search_dialog.xml index 1fdd70ee0..84f9a3d54 100644 --- a/app/src/main/res/layout/track_search_dialog.xml +++ b/app/src/main/res/layout/track_search_dialog.xml @@ -14,6 +14,7 @@ android:hint="@string/title" android:layout_marginEnd="16dp" android:layout_marginStart="16dp" + android:maxLines="1" app:layout_constraintTop_toTopOf="parent"/> - -