pull/83/head
kunfei 5 years ago
parent ee66194c15
commit 563f989703
  1. 4
      app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt

@ -87,7 +87,9 @@ class ImportBookActivity : VMBaseActivity<ImportBookViewModel>(R.layout.activity
}
val docList = arrayListOf<DocumentFile>()
doc?.listFiles()?.forEach {
if (it.isDirectory || it.name?.endsWith(".txt", true) == true) {
if (it.isDirectory && it.name?.startsWith(".") == false) {
docList.add(it)
} else if (it.name?.endsWith(".txt", true) == true) {
docList.add(it)
}
}

Loading…
Cancel
Save