|
@@ -104,8 +104,7 @@ public final class BitmapUtils {
|
|
|
|
|
|
// calculates the largest inSampleSize value (for smallest sample) that is a power of 2 and keeps both
|
|
|
// height and width **larger** than the requested height and width.
|
|
|
- while ((halfHeight / inSampleSize) > reqHeight
|
|
|
- && (halfWidth / inSampleSize) > reqWidth) {
|
|
|
+ while ((halfHeight / inSampleSize) > reqHeight || (halfWidth / inSampleSize) > reqWidth) {
|
|
|
inSampleSize *= 2;
|
|
|
}
|
|
|
}
|