Increase version of uCrop library which supports Android 10.

This commit is contained in:
Onuray Sahin 2020-08-26 12:27:12 +03:00
parent f745e22a52
commit 776d892d27
5 changed files with 5 additions and 9 deletions

View file

@ -9,6 +9,7 @@ Improvements 🙌:
Bugfix 🐛: Bugfix 🐛:
- Display name not shown under Settings/General (#1926) - Display name not shown under Settings/General (#1926)
- Change user or room avatar: when selecting Gallery, I'm not proposed to crop the selected image (#1590)
Translations 🗣: Translations 🗣:
- -

View file

@ -378,7 +378,7 @@ dependencies {
implementation "com.github.bumptech.glide:glide:$glide_version" implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version" kapt "com.github.bumptech.glide:compiler:$glide_version"
implementation 'com.danikula:videocache:2.7.1' implementation 'com.danikula:videocache:2.7.1'
implementation 'com.github.yalantis:ucrop:2.2.4' implementation 'com.github.yalantis:ucrop:2.2.6'
// Badge for compatibility // Badge for compatibility
implementation 'me.leolin:ShortcutBadger:1.1.22@aar' implementation 'me.leolin:ShortcutBadger:1.1.22@aar'

View file

@ -144,9 +144,7 @@ class BigImageViewerActivity : VectorBaseActivity() {
.get(MultiPicker.IMAGE) .get(MultiPicker.IMAGE)
.getSelectedFiles(this, requestCode, resultCode, data) .getSelectedFiles(this, requestCode, resultCode, data)
.firstOrNull()?.let { .firstOrNull()?.let {
// TODO. UCrop library cannot read from Gallery. For now, we will set avatar as it is. onRoomAvatarSelected(it)
// onRoomAvatarSelected(it)
onAvatarCropped(it.contentUri)
} }
} }
UCrop.REQUEST_CROP -> data?.let { onAvatarCropped(UCrop.getOutput(it)) } UCrop.REQUEST_CROP -> data?.let { onAvatarCropped(UCrop.getOutput(it)) }

View file

@ -301,9 +301,7 @@ class RoomProfileFragment @Inject constructor(
.get(MultiPicker.IMAGE) .get(MultiPicker.IMAGE)
.getSelectedFiles(requireContext(), requestCode, resultCode, data) .getSelectedFiles(requireContext(), requestCode, resultCode, data)
.firstOrNull()?.let { .firstOrNull()?.let {
// TODO. UCrop library cannot read from Gallery. For now, we will set avatar as it is. onRoomAvatarSelected(it)
// onRoomAvatarSelected(it)
onAvatarCropped(it.contentUri)
} }
} }
UCrop.REQUEST_CROP -> data?.let { onAvatarCropped(UCrop.getOutput(it)) } UCrop.REQUEST_CROP -> data?.let { onAvatarCropped(UCrop.getOutput(it)) }

View file

@ -356,8 +356,7 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
.get(MultiPicker.IMAGE) .get(MultiPicker.IMAGE)
.getSelectedFiles(requireContext(), requestCode, resultCode, data) .getSelectedFiles(requireContext(), requestCode, resultCode, data)
.firstOrNull()?.let { .firstOrNull()?.let {
// TODO. UCrop library cannot read from Gallery. For now, we will set avatar as it is. onAvatarSelected(it)
onAvatarCropped(it.contentUri)
} }
} }
UCrop.REQUEST_CROP -> data?.let { onAvatarCropped(UCrop.getOutput(it)) } UCrop.REQUEST_CROP -> data?.let { onAvatarCropped(UCrop.getOutput(it)) }