diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt index 8038068c56..280423ae09 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt @@ -1,5 +1,6 @@ package eu.kanade.tachiyomi.ui.reader.loader +import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.database.models.Manga import eu.kanade.tachiyomi.data.download.DownloadManager import eu.kanade.tachiyomi.source.LocalSource @@ -84,7 +85,7 @@ class ChapterLoader( is LocalSource.Format.Epub -> EpubPageLoader(format.file) } } - else -> error("Loader not implemented") + else -> error(downloadManager.context.getString(R.string.source_not_installed)) } } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBrowseController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBrowseController.kt index d93f28b640..7727fed5d6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBrowseController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBrowseController.kt @@ -70,7 +70,7 @@ class SettingsBrowseController : SettingsController() { (preferences.pinnedCatalogues().get() ?: emptySet()).joinToString("/") preferences.migrationSources().set(pinnedSources) (activity as? MainActivity)?.setUndoSnackBar(view?.snack( - R.string.migration_sources_set + R.string.migration_sources_changed ) { setAction(R.string.undo) { preferences.migrationSources().set(ogSources) @@ -92,7 +92,9 @@ class SettingsBrowseController : SettingsController() { .sortedBy { "(${it.lang}) ${it.name}" } .joinToString("/") { it.id.toString() } preferences.migrationSources().set(enabledSources) - (activity as? MainActivity)?.setUndoSnackBar(view?.snack(R.string.migration_sources_set) { + (activity as? MainActivity)?.setUndoSnackBar(view?.snack( + R.string.migration_sources_changed + ) { setAction(R.string.undo) { preferences.migrationSources().set(ogSources) } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 64129da337..653fe74fc0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -386,6 +386,7 @@ Failed to update cover Manga must be in your library to edit Remember this choice + Source not installed A chapter has been removed from the source:\n%2$s\nDelete its download? @@ -560,7 +561,7 @@ migration Use last saved pre-migration preferences and sources to mass migrate - Migration sources set + Migration sources changed You can also migrate by selecting manga in your library