diff --git a/app/src/main/java/io/legado/app/ui/filepicker/FilePickerActivity.kt b/app/src/main/java/io/legado/app/ui/filepicker/FilePickerActivity.kt index 7f15b115f..5ebddffb8 100644 --- a/app/src/main/java/io/legado/app/ui/filepicker/FilePickerActivity.kt +++ b/app/src/main/java/io/legado/app/ui/filepicker/FilePickerActivity.kt @@ -128,7 +128,9 @@ class FilePickerActivity : } override fun onResult(data: Intent) { - setResult(RESULT_OK, data) + if (data.data != null) { + setResult(RESULT_OK, data) + } finish() }