mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 11:59:19 +01:00
Hide locale subtitle for local source
This commit is contained in:
parent
8aa6486bf7
commit
e32445f2cf
@ -32,7 +32,7 @@ class SourceHolder(private val view: View, val adapter: SourceAdapter) :
|
|||||||
val source = item.source
|
val source = item.source
|
||||||
|
|
||||||
title.text = source.name
|
title.text = source.name
|
||||||
subtitle.isVisible = true
|
subtitle.isVisible = source !is LocalSource
|
||||||
subtitle.text = LocaleHelper.getDisplayName(source.lang)
|
subtitle.text = LocaleHelper.getDisplayName(source.lang)
|
||||||
|
|
||||||
// Set source icon
|
// Set source icon
|
||||||
|
@ -4,6 +4,7 @@ import android.view.View
|
|||||||
import androidx.core.view.isVisible
|
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.source.LocalSource
|
||||||
import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
|
import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
|
||||||
import eu.kanade.tachiyomi.util.system.LocaleHelper
|
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
|
||||||
@ -53,7 +54,7 @@ class GlobalSearchHolder(view: View, val adapter: GlobalSearchAdapter) :
|
|||||||
val titlePrefix = if (item.highlighted) "▶ " else ""
|
val titlePrefix = if (item.highlighted) "▶ " else ""
|
||||||
|
|
||||||
title.text = titlePrefix + source.name
|
title.text = titlePrefix + source.name
|
||||||
subtitle.isVisible = true
|
subtitle.isVisible = source !is LocalSource
|
||||||
subtitle.text = LocaleHelper.getDisplayName(source.lang)
|
subtitle.text = LocaleHelper.getDisplayName(source.lang)
|
||||||
|
|
||||||
when {
|
when {
|
||||||
|
Loading…
Reference in New Issue
Block a user