Skip to content

Commit c23069c

Browse files
committed
Spelling
1 parent b9d55fe commit c23069c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

library/src/com/nostra13/universalimageloader/core/decode/BaseImageDecoder.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
*/
4141
public class BaseImageDecoder implements ImageDecoder {
4242

43-
protected static final String LOG_SABSAMPLE_IMAGE = "Subsample original image (%1$s) to %2$s (scale = %3$d) [%4$s]";
43+
protected static final String LOG_SUBSAMPLE_IMAGE = "Subsample original image (%1$s) to %2$s (scale = %3$d) [%4$s]";
4444
protected static final String LOG_SCALE_IMAGE = "Scale subsampled image (%1$s) to %2$s (scale = %3$.5f) [%4$s]";
4545
protected static final String LOG_ROTATE_IMAGE = "Rotate image on %1$d\u00B0 [%2$s]";
4646
protected static final String LOG_FLIP_IMAGE = "Flip image horizontally [%s]";
@@ -66,6 +66,7 @@ public BaseImageDecoder(boolean loggingEnabled) {
6666
* @throws IOException if some I/O exception occurs during image reading
6767
* @throws UnsupportedOperationException if image URI has unsupported scheme(protocol)
6868
*/
69+
@Override
6970
public Bitmap decode(ImageDecodingInfo decodingInfo) throws IOException {
7071
Bitmap decodedBitmap;
7172
ImageFileInfo imageInfo;
@@ -83,7 +84,7 @@ public Bitmap decode(ImageDecodingInfo decodingInfo) throws IOException {
8384
if (decodedBitmap == null) {
8485
L.e(ERROR_CANT_DECODE_IMAGE, decodingInfo.getImageKey());
8586
} else {
86-
decodedBitmap = considerExactScaleAndOrientaiton(decodedBitmap, decodingInfo, imageInfo.exif.rotation,
87+
decodedBitmap = considerExactScaleAndOrientatiton(decodedBitmap, decodingInfo, imageInfo.exif.rotation,
8788
imageInfo.exif.flipHorizontal);
8889
}
8990
return decodedBitmap;
@@ -159,7 +160,7 @@ protected Options prepareDecodingOptions(ImageSize imageSize, ImageDecodingInfo
159160
scale = ImageSizeUtils.computeImageSampleSize(imageSize, targetSize, decodingInfo.getViewScaleType(), powerOf2);
160161
}
161162
if (scale > 1 && loggingEnabled) {
162-
L.d(LOG_SABSAMPLE_IMAGE, imageSize, imageSize.scaleDown(scale), scale, decodingInfo.getImageKey());
163+
L.d(LOG_SUBSAMPLE_IMAGE, imageSize, imageSize.scaleDown(scale), scale, decodingInfo.getImageKey());
163164
}
164165

165166
Options decodingOptions = decodingInfo.getDecodingOptions();
@@ -177,7 +178,7 @@ protected InputStream resetStream(InputStream imageStream, ImageDecodingInfo dec
177178
return imageStream;
178179
}
179180

180-
protected Bitmap considerExactScaleAndOrientaiton(Bitmap subsampledBitmap, ImageDecodingInfo decodingInfo,
181+
protected Bitmap considerExactScaleAndOrientatiton(Bitmap subsampledBitmap, ImageDecodingInfo decodingInfo,
181182
int rotation, boolean flipHorizontal) {
182183
Matrix m = new Matrix();
183184
// Scale to exact size if need

0 commit comments

Comments
 (0)