Skip to content

Commit 8a1dbe7

Browse files
satoshunsjudd
authored andcommitted
Fix code format and typo in TransformationUtils (bumptech#2359)
1 parent 8a149b9 commit 8a1dbe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/com/bumptech/glide/load/resource/bitmap/TransformationUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public static Bitmap fitCenter(@NonNull BitmapPool pool, @NonNull Bitmap inBitma
172172
* height is larger than the given dimensions
173173
*/
174174
public static Bitmap centerInside(@NonNull BitmapPool pool, @NonNull Bitmap inBitmap, int width,
175-
int height) {
175+
int height) {
176176
if (inBitmap.getWidth() <= width && inBitmap.getHeight() <= height) {
177177
if (Log.isLoggable(TAG, Log.VERBOSE)) {
178178
Log.v(TAG, "requested target size larger or equal to input, returning input");
@@ -368,7 +368,7 @@ private static Bitmap getAlphaSafeBitmap(@NonNull BitmapPool pool,
368368

369369
Bitmap argbBitmap = pool.get(maybeAlphaSafe.getWidth(), maybeAlphaSafe.getHeight(),
370370
Bitmap.Config.ARGB_8888);
371-
new Canvas(argbBitmap).drawBitmap(maybeAlphaSafe, 0 /*left*/, 0 /*top*/, null /*pain*/);
371+
new Canvas(argbBitmap).drawBitmap(maybeAlphaSafe, 0 /*left*/, 0 /*top*/, null /*paint*/);
372372

373373
// We now own this Bitmap. It's our responsibility to replace it in the pool outside this method
374374
// when we're finished with it.

0 commit comments

Comments
 (0)