From 3439a1e16a4582b8fdfb175610c49541adf9a1a2 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 24 May 2020 02:42:46 +0300 Subject: [PATCH] MediaUploader: fix stupid bug that made all pictures to be resized --- .../com/keylesspalace/tusky/components/compose/MediaUploader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/compose/MediaUploader.kt b/app/src/main/java/com/keylesspalace/tusky/components/compose/MediaUploader.kt index 048dbef4..0d3b42f3 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/compose/MediaUploader.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/compose/MediaUploader.kt @@ -206,7 +206,7 @@ class MediaUploaderImpl( // resize only images if(media.type == QueuedMedia.Type.IMAGE) { // resize when exceed image limit - if(media.mediaSize < imageLimit) + if(media.mediaSize >= imageLimit) return true // don't resize when instance permits any image resolution(Pleroma)