pull/83/head
kunfei 5 years ago
parent ec4f4c33a1
commit d940849dec
  1. 2
      app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt

@ -47,7 +47,7 @@ class ImportBookAdapter(context: Context, val callBack: CallBack) :
cb_select.isChecked = selectedUris.contains(item.uri.toString()) cb_select.isChecked = selectedUris.contains(item.uri.toString())
onClick { onClick {
if (item.isDir) { if (item.isDir) {
callBack.nextDoc(DocumentFile.fromTreeUri(context, item.uri)!!) callBack.nextDoc(DocumentFile.fromSingleUri(context, item.uri)!!)
} else { } else {
cb_select.isChecked = !cb_select.isChecked cb_select.isChecked = !cb_select.isChecked
if (cb_select.isChecked) { if (cb_select.isChecked) {

Loading…
Cancel
Save