Update ImagePicker.java

Fixed assigning the desired height to "desiredWidth". Closes #71.
This commit is contained in:
Eric
2016-01-09 21:15:25 -05:00
parent 42aafdc23e
commit 61bed8ff7b
@@ -38,7 +38,7 @@ public class ImagePicker extends CordovaPlugin {
desiredWidth = this.params.getInt("width");
}
if (this.params.has("height")) {
desiredWidth = this.params.getInt("height");
desiredHeight = this.params.getInt("height");
}
if (this.params.has("quality")) {
quality = this.params.getInt("quality");
@@ -69,4 +69,4 @@ public class ImagePicker extends CordovaPlugin {
this.callbackContext.error("No images selected");
}
}
}
}