Minor cleanup

This commit is contained in:
Jobobby04 2022-11-24 15:18:23 -05:00
parent e0ad9f78ac
commit fdb17e2f74
2 changed files with 2 additions and 3 deletions

View File

@ -445,8 +445,7 @@ class MangaScreen(
MaterialAlertDialogBuilder(context)
.setTitle(R.string.action_open_in_web_view)
.setSingleChoiceItems(
mergedManga.mapIndexed { index, _ -> sources[index].toString() }
.toTypedArray(),
Array(mergedManga.size) { index -> sources[index].toString() },
-1,
) { dialog, index ->
dialog.dismiss()

View File

@ -299,7 +299,7 @@ object DebugFunctions {
runBlocking { handler.await { ehQueries.resetReaderViewerForAllManga() } }
}
fun migrateAllNhentaiToOtherLang() {
fun migrateLangNhentaiToMultiLangSource() {
val sources = nHentaiSourceIds - NHentai.otherId
runBlocking { handler.await { ehQueries.migrateAllNhentaiToOtherLang(NHentai.otherId, sources) } }