|
|
@ -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) { |
|
|
|