diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/data/LocalMediaData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/data/LocalMediaData.java b/src/com/android/camera/data/LocalMediaData.java index f692cbcc0..9391892b1 100644 --- a/src/com/android/camera/data/LocalMediaData.java +++ b/src/com/android/camera/data/LocalMediaData.java @@ -471,7 +471,7 @@ public abstract class LocalMediaData implements LocalData { if (mWidth > mDecodeWidth || mHeight > mDecodeHeight) { int heightRatio = Math.round((float) mHeight / (float) mDecodeHeight); int widthRatio = Math.round((float) mWidth / (float) mDecodeWidth); - sampleSize = heightRatio < widthRatio ? heightRatio : widthRatio; + sampleSize = Math.max(heightRatio, widthRatio); } BitmapFactory.Options opts = new BitmapFactory.Options(); |