|
|
@ -94,7 +94,7 @@ class ImportBookAdapter(context: Context, val callBack: CallBack) : |
|
|
|
private fun upCheckableCount() { |
|
|
|
private fun upCheckableCount() { |
|
|
|
checkableCount = 0 |
|
|
|
checkableCount = 0 |
|
|
|
getItems().forEach { |
|
|
|
getItems().forEach { |
|
|
|
if (!it.isDir && !bookFileNames.contains(it.uri.toString())) { |
|
|
|
if (!it.isDir && !bookFileNames.contains(it.name)) { |
|
|
|
checkableCount++ |
|
|
|
checkableCount++ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -104,7 +104,7 @@ class ImportBookAdapter(context: Context, val callBack: CallBack) : |
|
|
|
fun selectAll(selectAll: Boolean) { |
|
|
|
fun selectAll(selectAll: Boolean) { |
|
|
|
if (selectAll) { |
|
|
|
if (selectAll) { |
|
|
|
getItems().forEach { |
|
|
|
getItems().forEach { |
|
|
|
if (!it.isDir && !bookFileNames.contains(it.uri.toString())) { |
|
|
|
if (!it.isDir && !bookFileNames.contains(it.name)) { |
|
|
|
selectedUris.add(it.uri.toString()) |
|
|
|
selectedUris.add(it.uri.toString()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|