diff options
Diffstat (limited to 'core/java/android/widget/ImageView.java')
-rw-r--r-- | core/java/android/widget/ImageView.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java index 572302a..a40b85e 100644 --- a/core/java/android/widget/ImageView.java +++ b/core/java/android/widget/ImageView.java @@ -1010,7 +1010,17 @@ public class ImageView extends View { } } - @Override + /** @hide */ + @Override + protected void setDrawableHotspot(float x, float y) { + super.setDrawableHotspot(x, y); + + if (mDrawable != null) { + mDrawable.setHotspot(x, y); + } + } + + @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); |