diff --git a/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt index fc4d51c94..bb07f1dd6 100644 --- a/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt @@ -72,7 +72,7 @@ class ImportBookActivity : VMBaseActivity selectFolder.launch(null) + R.id.menu_select_folder -> selectFolder.launch {} R.id.menu_scan_folder -> scanFolder() R.id.menu_import_file_name -> alertImportFileName() } @@ -133,7 +133,7 @@ class ImportBookActivity : VMBaseActivity { binding.tvEmptyMsg.visible() - selectFolder.launch(null) + selectFolder.launch {} } lastPath.isContentScheme() -> { val rootUri = Uri.parse(lastPath) @@ -141,7 +141,7 @@ class ImportBookActivity : VMBaseActivity Build.VERSION_CODES.Q -> { binding.tvEmptyMsg.visible() - selectFolder.launch(null) + selectFolder.launch {} } else -> initRootPath(lastPath) } @@ -172,7 +172,7 @@ class ImportBookActivity : VMBaseActivity