From e1f26d5497247bb759ec8e22cd8100f7613b2d53 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 28 Apr 2020 21:32:22 -0400 Subject: [PATCH] Added "Tachiyomi" folder in the list to check for local manga --- app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt b/app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt index c0c4e3fc6e..2f03295530 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt @@ -60,7 +60,10 @@ class LocalSource(private val context: Context) : CatalogueSource { private fun getBaseDirectories(context: Context): List { val c = context.getString(R.string.app_name) + File.separator + "local" - return DiskUtil.getExternalStorages(context).map { File(it.absolutePath, c) } + val oldLibrary = "Tachiyomi" + File.separator + "local" + return DiskUtil.getExternalStorages(context).map { + listOf(File(it.absolutePath, c), File(it.absolutePath, oldLibrary)) + }.flatten() } }