|
|
@ -586,7 +586,7 @@ public class Helper {
|
|
|
|
options.inSampleSize = factor;
|
|
|
|
options.inSampleSize = factor;
|
|
|
|
Bitmap scaled = BitmapFactory.decodeFile(file.getAbsolutePath(), options);
|
|
|
|
Bitmap scaled = BitmapFactory.decodeFile(file.getAbsolutePath(), options);
|
|
|
|
|
|
|
|
|
|
|
|
if (rotation != null) {
|
|
|
|
if (scaled != null && rotation != null) {
|
|
|
|
Bitmap rotated = Bitmap.createBitmap(scaled, 0, 0, scaled.getWidth(), scaled.getHeight(), rotation, true);
|
|
|
|
Bitmap rotated = Bitmap.createBitmap(scaled, 0, 0, scaled.getWidth(), scaled.getHeight(), rotation, true);
|
|
|
|
scaled.recycle();
|
|
|
|
scaled.recycle();
|
|
|
|
scaled = rotated;
|
|
|
|
scaled = rotated;
|
|
|
|