diff options
author | Mark Wei <markwei@google.com> | 2013-11-04 12:43:22 -0800 |
---|---|---|
committer | Mark Wei <markwei@google.com> | 2013-11-04 12:43:22 -0800 |
commit | fd628f9186741ff689c8b44b94e839af92abaeed (patch) | |
tree | ef90e8455d15112b6aee5fc4264dd75363471321 /src/com/android | |
parent | 0c9aacac20202f4a41e98d8a34a6ee2c152ae2de (diff) | |
download | bitmap-fd628f9186741ff689c8b44b94e839af92abaeed.tar.gz |
Consistent naming with onDraw().
Change-Id: I6fb90cc9f18abc97c17e5603b588039c717b63bb
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/bitmap/drawable/BasicBitmapDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/bitmap/drawable/BasicBitmapDrawable.java b/src/com/android/bitmap/drawable/BasicBitmapDrawable.java index f9d39a3..e058868 100644 --- a/src/com/android/bitmap/drawable/BasicBitmapDrawable.java +++ b/src/com/android/bitmap/drawable/BasicBitmapDrawable.java @@ -281,7 +281,7 @@ public class BasicBitmapDrawable extends Drawable implements DecodeCallback, // Rotate the canvas. canvas.save(); canvas.rotate(orientation, bounds.centerX(), bounds.centerY()); - drawBitmap(canvas, rotatedBounds); + onDrawBitmap(canvas, rotatedBounds); canvas.restore(); } } @@ -290,7 +290,7 @@ public class BasicBitmapDrawable extends Drawable implements DecodeCallback, * Override this method to customize how to draw the bitmap to the canvas for the given bounds. * The bitmap to be drawn can be found at {@link #getBitmap()}. */ - protected void drawBitmap(final Canvas canvas, final Rect bounds) { + protected void onDrawBitmap(final Canvas canvas, final Rect bounds) { canvas.drawBitmap(mBitmap.bmp, sRect, bounds, mPaint); } |