mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -200,7 +200,7 @@ class ImportBookActivity : VMBaseActivity<ActivityImportBookBinding, ImportBookV
|
||||
private fun upSort(sort: Int) {
|
||||
viewModel.sort = sort
|
||||
putPrefInt(PreferKey.localBookImportSort, sort)
|
||||
if (scanDocJob?.isCancelled == true || scanDocJob?.isCompleted == true) {
|
||||
if (scanDocJob?.isActive != true) {
|
||||
viewModel.dataCallback?.setItems(adapter.getItems())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user