adding a crashfix and updating commons

This commit is contained in:
tibbi 2022-05-04 12:30:15 +02:00
parent ccbd19a536
commit 048b109f8a
2 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:41dc9c6bfe'
implementation 'com.github.SimpleMobileTools:Simple-Commons:cf7876b53f'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'it.sephiroth.android.exif:library:1.0.1'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24'

View file

@ -102,7 +102,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
return
}
handlePermission(PERMISSION_WRITE_STORAGE){
handlePermission(PERMISSION_WRITE_STORAGE) {
if (!it) {
toast(R.string.no_storage_permissions)
finish()
@ -169,7 +169,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
}
saveUri = when {
intent.extras?.containsKey(MediaStore.EXTRA_OUTPUT) == true -> intent.extras!!.get(MediaStore.EXTRA_OUTPUT) as Uri
intent.extras?.containsKey(MediaStore.EXTRA_OUTPUT) == true && intent.extras!!.get(MediaStore.EXTRA_OUTPUT) is Uri -> intent.extras!!.get(MediaStore.EXTRA_OUTPUT) as Uri
else -> uri!!
}