From 44a457087022bdb96b8d10b90b93ec14a7537f35 Mon Sep 17 00:00:00 2001 From: agrajaghh Date: Tue, 16 Dec 2014 13:05:07 +0100 Subject: [PATCH] remove double rotation of group avatars //FREEBIE --- src/org/thoughtcrime/securesms/util/BitmapUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/org/thoughtcrime/securesms/util/BitmapUtil.java b/src/org/thoughtcrime/securesms/util/BitmapUtil.java index dc00c0ffd7..a74a4e9ae5 100644 --- a/src/org/thoughtcrime/securesms/util/BitmapUtil.java +++ b/src/org/thoughtcrime/securesms/util/BitmapUtil.java @@ -205,10 +205,8 @@ public class BitmapUtil { public static Bitmap getScaledCircleCroppedBitmap(Context context, MasterSecret masterSecret, Uri uri, int destSize) throws FileNotFoundException, BitmapDecodingException { - InputStream orientationStream = PartAuthority.getPartStream(context, masterSecret, uri); - Bitmap bitmap = createScaledBitmap(context, masterSecret, uri, destSize, destSize); - - return getScaledCircleCroppedBitmap(fixOrientation(bitmap, orientationStream), destSize); + Bitmap bitmap = createScaledBitmap(context, masterSecret, uri, destSize, destSize); + return getScaledCircleCroppedBitmap(bitmap, destSize); } public static Bitmap getScaledCircleCroppedBitmap(Bitmap bitmap, int destSize) {