CB-7071 android: Fix callback firing before CROP intent is sent when allowEdit=true

This commit is contained in:
Andrew Grieve 2014-07-03 13:21:52 -04:00
parent f20703de20
commit e4ab155fd0

View File

@ -431,8 +431,8 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
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);