Skip to content

Commit 84c8e34

Browse files
committed
Prepend "file://" to result path in single mode.
1 parent 0add2ea commit 84c8e34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/main/java/io/liaoyuan/reactnative/multipleimagepicker/MultipleImagePicker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void launchImageGallery(ReadableMap options, final Promise promise) {
7272
rxGalleryFinal.radio().imageLoader(ImageLoaderType.PICASSO).subscribe(new RxBusResultSubscriber<ImageRadioResultEvent>() {
7373
@Override
7474
protected void onEvent(ImageRadioResultEvent imageRadioResultEvent) throws Exception {
75-
promise.resolve(imageRadioResultEvent.getResult().getOriginalPath());
75+
promise.resolve("file://" + imageRadioResultEvent.getResult().getOriginalPath());
7676
}
7777
}).openGallery();
7878
} else {

0 commit comments

Comments
 (0)