Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d512a3b3 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change Ic1d72f56 into eclair-mr2

* changes:
  Make createThumbnailFromEXIF prefer choosing a thumbnail from the exif to from the full image, if both can generate of a thumbnail of same size.
parents e14861ea c1d72f56
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -562,7 +562,7 @@ public class ThumbnailUtil {
        fullThumbWidth = fullOptions.outWidth / fullOptions.inSampleSize;
        fullThumbWidth = fullOptions.outWidth / fullOptions.inSampleSize;


        // Choose the larger thumbnail as the returning sizedThumbBitmap.
        // Choose the larger thumbnail as the returning sizedThumbBitmap.
        if (exifThumbWidth > fullThumbWidth) {
        if (exifThumbWidth >= fullThumbWidth) {
            int width = exifOptions.outWidth;
            int width = exifOptions.outWidth;
            int height = exifOptions.outHeight;
            int height = exifOptions.outHeight;
            exifOptions.inJustDecodeBounds = false;
            exifOptions.inJustDecodeBounds = false;