diff --git a/packages/image_picker/image_picker_ohos/ohos/ImagePickerOhos/src/main/ets/image_picker/ImagePickerDelegate.ets b/packages/image_picker/image_picker_ohos/ohos/ImagePickerOhos/src/main/ets/image_picker/ImagePickerDelegate.ets index 832eeb00e33ab9964c08b235758aa867214b85bd..63960cf8e50f6ea8b61e84a44171e79d00543e1c 100644 --- a/packages/image_picker/image_picker_ohos/ohos/ImagePickerOhos/src/main/ets/image_picker/ImagePickerDelegate.ets +++ b/packages/image_picker/image_picker_ohos/ohos/ImagePickerOhos/src/main/ets/image_picker/ImagePickerDelegate.ets @@ -352,11 +352,11 @@ export default class ImagePickerDelegate { setPendingOptionsAndResult(imageOptions: ImageSelectionOptions, videoOptions: VideoSelectionOptions, result: Result>): boolean { if (this.pendingCallState != null && this.pendingCallState != undefined) { - Log.i(ImagePickerDelegate.TAG, "setPendingOptionsAndResult return false"); - return false; + Log.i(ImagePickerDelegate.TAG, "There is already an open gallery, use it directly to select images"); + }else{ + Log.i(ImagePickerDelegate.TAG, "Prepare to awaken a new one"); + this.pendingCallState = new PendingCallState(imageOptions, videoOptions, result); } - - this.pendingCallState = new PendingCallState(imageOptions, videoOptions, result); this.cache.clear(); return true; }