|
@@ -5,9 +5,11 @@ import androidx.core.view.isVisible
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
|
import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
|
|
import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
|
|
|
|
+import eu.kanade.tachiyomi.util.system.LocaleHelper
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.no_results_found
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.no_results_found
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.progress
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.progress
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.recycler
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.recycler
|
|
|
|
+import kotlinx.android.synthetic.main.global_search_controller_card.subtitle
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.title
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.title
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.title_wrapper
|
|
import kotlinx.android.synthetic.main.global_search_controller_card.title_wrapper
|
|
|
|
|
|
@@ -49,10 +51,10 @@ class GlobalSearchHolder(view: View, val adapter: GlobalSearchAdapter) :
|
|
val results = item.results
|
|
val results = item.results
|
|
|
|
|
|
val titlePrefix = if (item.highlighted) "▶ " else ""
|
|
val titlePrefix = if (item.highlighted) "▶ " else ""
|
|
- val langSuffix = if (source.lang.isNotEmpty()) " (${source.lang})" else ""
|
|
|
|
|
|
|
|
- // Set Title with country code if available.
|
|
|
|
- title.text = titlePrefix + source.name + langSuffix
|
|
|
|
|
|
+ title.text = titlePrefix + source.name
|
|
|
|
+ subtitle.isVisible = true
|
|
|
|
+ subtitle.text = LocaleHelper.getDisplayName(source.lang)
|
|
|
|
|
|
when {
|
|
when {
|
|
results == null -> {
|
|
results == null -> {
|