From 0d7c0bc29c9eeb0cfdf26fb8def80a06bfdcccd2 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Fri, 25 Sep 2020 13:17:10 +0200 Subject: [PATCH] Increase sticker size As proposed in https://github.com/SpiritCroc/SchildiChat-android/issues/8 Change-Id: I225515eaf7b269d82572dd1b0f745d6da6b8c3be --- .../java/im/vector/app/features/media/ImageContentRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt b/vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt index cf1381a1cf..21ed907f0b 100644 --- a/vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt +++ b/vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt @@ -290,7 +290,7 @@ class ImageContentRenderer @Inject constructor(private val activeSessionHolder: } Mode.STICKER -> { // limit on width - val maxWidthDp = min(dimensionConverter.dpToPx(120), maxImageWidth / 2) + val maxWidthDp = min(dimensionConverter.dpToPx(240), maxImageWidth) finalWidth = min(dimensionConverter.dpToPx(width), maxWidthDp) finalHeight = finalWidth * height / width }