From 11b82ec9de516f68e342b7758b03576fd2dddd91 Mon Sep 17 00:00:00 2001 From: Marko Gobin Date: Sat, 4 Nov 2023 22:59:46 +0100 Subject: [PATCH] Increase default photo size to 2560px --- .../src/main/java/org/telegram/messenger/AndroidUtilities.java | 2 +- .../src/main/java/org/telegram/ui/Components/Crop/CropView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java b/TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java index 7830f3552..24698990a 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java @@ -2477,7 +2477,7 @@ public class AndroidUtilities { public static int getPhotoSize() { if (photoSize == null) { - photoSize = 1280; + photoSize = 2560; } return photoSize; } diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/Crop/CropView.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/Crop/CropView.java index ee1e89d3c..0c4fbb969 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/Crop/CropView.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/Crop/CropView.java @@ -42,7 +42,7 @@ import java.util.ArrayList; public class CropView extends FrameLayout implements CropAreaView.AreaViewListener, CropGestureDetector.CropGestureListener { private static final float EPSILON = 0.00001f; - private static final int RESULT_SIDE = 1280; + private static final int RESULT_SIDE = 2560; private static final float MAX_SCALE = 30.0f; public CropAreaView areaView;