Change usage of name to visualName when Default category can be shown (#7725)
This commit is contained in:
@@ -6,6 +6,7 @@ import com.bluelinelabs.conductor.Controller
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import eu.kanade.domain.category.model.Category
|
||||
import eu.kanade.domain.manga.model.Manga
|
||||
import eu.kanade.presentation.category.visualName
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
||||
import eu.kanade.tachiyomi.ui.base.controller.pushController
|
||||
@@ -41,7 +42,7 @@ class ChangeMangaCategoriesDialog<T>(bundle: Bundle? = null) :
|
||||
.apply {
|
||||
if (categories.isNotEmpty()) {
|
||||
setQuadStateMultiChoiceItems(
|
||||
items = categories.map { it.name },
|
||||
items = categories.map { it.visualName(context) },
|
||||
isActionList = false,
|
||||
initialSelected = preselected.toIntArray(),
|
||||
) { selections ->
|
||||
|
||||
Reference in New Issue
Block a user