From 5b7d8c5e37753aa0cd87fba22683fea6fdb5d8ed Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 7 Feb 2021 22:54:13 -0500 Subject: [PATCH] Show locales in list of sources to migrate --- .../tachiyomi/ui/browse/migration/sources/SourceHolder.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/SourceHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/SourceHolder.kt index 6a0225c247..fcf1063a72 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/SourceHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/SourceHolder.kt @@ -1,9 +1,11 @@ package eu.kanade.tachiyomi.ui.browse.migration.sources import android.view.View +import androidx.core.view.isVisible import eu.davidea.viewholders.FlexibleViewHolder import eu.kanade.tachiyomi.databinding.SourceMainControllerCardItemBinding import eu.kanade.tachiyomi.source.icon +import eu.kanade.tachiyomi.util.system.LocaleHelper class SourceHolder(view: View, val adapter: SourceAdapter) : FlexibleViewHolder(view, adapter) { @@ -13,10 +15,10 @@ class SourceHolder(view: View, val adapter: SourceAdapter) : fun bind(item: SourceItem) { val source = item.source - // Set source name binding.title.text = source.name + binding.subtitle.isVisible = true + binding.subtitle.text = LocaleHelper.getDisplayName(source.lang) - // Set source icon itemView.post { binding.image.setImageDrawable(source.icon()) }