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 6a0225c24..fcf1063a7 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()) }