mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 05:15:10 +01:00
Added "Tachiyomi" folder in the list to check for local manga
This commit is contained in:
parent
931e37b903
commit
e1f26d5497
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user