Skip to content

Commit 9320c6d

Browse files
authored
setOutputFormat became mandatory in version 2.3.17 (#71)
#70 * Fixed exception in an optional output format parameter * Fixed bug building sample project for enabling multi dex
1 parent de77530 commit 9320c6d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

imagepicker/src/main/kotlin/com/github/drjacky/imagepicker/provider/CropProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class CropProvider(activity: ImagePickerActivity, private val launcher: (Intent)
6060
cropFreeStyle = getBoolean(ImagePicker.EXTRA_CROP_FREE_STYLE, false)
6161
cropAspectX = getFloat(ImagePicker.EXTRA_CROP_X, 0f)
6262
cropAspectY = getFloat(ImagePicker.EXTRA_CROP_Y, 0f)
63-
outputFormat = this.get(ImagePicker.EXTRA_OUTPUT_FORMAT) as Bitmap.CompressFormat
63+
outputFormat = this.get(ImagePicker.EXTRA_OUTPUT_FORMAT) as? Bitmap.CompressFormat
6464
}
6565
}
6666

sample/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ android {
3535
applicationId "com.github.drjacky.imagepicker.sample"
3636
minSdkVersion 19
3737
targetSdkVersion 31
38+
multiDexEnabled true
3839
versionCode rootProject.ext.versionCode
3940
versionName rootProject.ext.versionName
4041
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

0 commit comments

Comments
 (0)