mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Hide locale subtitle for local source
This commit is contained in:
		| @@ -32,7 +32,7 @@ class SourceHolder(private val view: View, val adapter: SourceAdapter) : | ||||
|         val source = item.source | ||||
|  | ||||
|         title.text = source.name | ||||
|         subtitle.isVisible = true | ||||
|         subtitle.isVisible = source !is LocalSource | ||||
|         subtitle.text = LocaleHelper.getDisplayName(source.lang) | ||||
|  | ||||
|         // Set source icon | ||||
|   | ||||
| @@ -4,6 +4,7 @@ import android.view.View | ||||
| import androidx.core.view.isVisible | ||||
| import androidx.recyclerview.widget.LinearLayoutManager | ||||
| 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.util.system.LocaleHelper | ||||
| 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 "" | ||||
|  | ||||
|         title.text = titlePrefix + source.name | ||||
|         subtitle.isVisible = true | ||||
|         subtitle.isVisible = source !is LocalSource | ||||
|         subtitle.text = LocaleHelper.getDisplayName(source.lang) | ||||
|  | ||||
|         when { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user