mirror of
https://gitee.com/shuto/cordova-imagePicker.git
synced 2026-05-23 00:05:03 +08:00
Update ImagePicker.java
Fixed assigning the desired height to "desiredWidth". Closes #71.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user