|
|
@ -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(".")) { |
|
|
|