Added "Tachiyomi" folder in the list to check for local manga
This commit is contained in:
parent
931e37b903
commit
e1f26d5497
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue