mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-19 03:42:52 +08:00
CB-7071 android: Fix callback firing before CROP intent is sent when allowEdit=true
This commit is contained in:
parent
f20703de20
commit
e4ab155fd0
@ -425,14 +425,14 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
|||||||
exif.writeExifData();
|
exif.writeExifData();
|
||||||
}
|
}
|
||||||
if (this.allowEdit) {
|
if (this.allowEdit) {
|
||||||
performCrop(uri);
|
performCrop(uri);
|
||||||
} else {
|
} else {
|
||||||
// Send Uri back to JavaScript for viewing image
|
// Send Uri back to JavaScript for viewing image
|
||||||
this.callbackContext.success(uri.toString());
|
this.callbackContext.success(uri.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Send Uri back to JavaScript for viewing image
|
} else {
|
||||||
this.callbackContext.success(uri.toString());
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.cleanup(FILE_URI, this.imageUri, uri, bitmap);
|
this.cleanup(FILE_URI, this.imageUri, uri, bitmap);
|
||||||
|
Loading…
Reference in New Issue
Block a user