summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wei <markwei@google.com>2013-11-04 12:43:22 -0800
committerMark Wei <markwei@google.com>2013-11-04 12:43:22 -0800
commitfd628f9186741ff689c8b44b94e839af92abaeed (patch)
treeef90e8455d15112b6aee5fc4264dd75363471321
parent0c9aacac20202f4a41e98d8a34a6ee2c152ae2de (diff)
downloadbitmap-fd628f9186741ff689c8b44b94e839af92abaeed.tar.gz
Consistent naming with onDraw().
Change-Id: I6fb90cc9f18abc97c17e5603b588039c717b63bb
-rw-r--r--src/com/android/bitmap/drawable/BasicBitmapDrawable.java4
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);
}