pull/416/head
gedoor 4 years ago
parent 8992d5b027
commit a2f4a1c928
  1. 5
      app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt

@ -165,10 +165,7 @@ class ImportBookActivity : VMBaseActivity<ImportBookViewModel>(R.layout.activity
adapter.selectedUris.clear() adapter.selectedUris.clear()
adapter.clearItems() adapter.clearItems()
launch(IO) { launch(IO) {
val docList = DocumentUtils.listFiles( val docList = DocumentUtils.listFiles(this@ImportBookActivity, lastDoc.uri)
this@ImportBookActivity,
lastDoc.uri
)
for (i in docList.lastIndex downTo 0) { for (i in docList.lastIndex downTo 0) {
val item = docList[i] val item = docList[i]
if (item.name.startsWith(".")) { if (item.name.startsWith(".")) {

Loading…
Cancel
Save