Skip to content

Commit

Permalink
Fix code format and typo in TransformationUtils (#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshun authored and sjudd committed Sep 8, 2017
1 parent 8a149b9 commit 8a1dbe7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static Bitmap fitCenter(@NonNull BitmapPool pool, @NonNull Bitmap inBitma
* height is larger than the given dimensions
*/
public static Bitmap centerInside(@NonNull BitmapPool pool, @NonNull Bitmap inBitmap, int width,
int height) {
int height) {
if (inBitmap.getWidth() <= width && inBitmap.getHeight() <= height) {
if (Log.isLoggable(TAG, Log.VERBOSE)) {
Log.v(TAG, "requested target size larger or equal to input, returning input");
Expand Down Expand Up @@ -368,7 +368,7 @@ private static Bitmap getAlphaSafeBitmap(@NonNull BitmapPool pool,

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

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

0 comments on commit 8a1dbe7

Please sign in to comment.