Added "Tachiyomi" folder in the list to check for local manga

This commit is contained in:
Jay 2020-04-28 21:32:22 -04:00
parent 931e37b903
commit e1f26d5497

View File

@ -60,7 +60,10 @@ class LocalSource(private val context: Context) : CatalogueSource {
private fun getBaseDirectories(context: Context): List<File> { private fun getBaseDirectories(context: Context): List<File> {
val c = context.getString(R.string.app_name) + File.separator + "local" 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()
} }
} }