diff options
author | Alexander Martinz <eviscerationls@gmail.com> | 2015-05-06 00:44:24 +0200 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2015-05-06 09:55:49 -0700 |
commit | 27cf86939d918b2d6b32a0650a48b8a2afaa26b6 (patch) | |
tree | fa2ba438e009b4ec62cbcdf5e0b84c64f6c0c8db /graphics | |
parent | 424681e43e454bfcbceb863ddccb875ea57ec26f (diff) | |
download | frameworks_base-27cf86939d918b2d6b32a0650a48b8a2afaa26b6.zip frameworks_base-27cf86939d918b2d6b32a0650a48b8a2afaa26b6.tar.gz frameworks_base-27cf86939d918b2d6b32a0650a48b8a2afaa26b6.tar.bz2 |
Fix setting hotspot bounds in a drawable container
We are passing the wrong parameters for setting hotspot bounds.
Bottom and right are in the wrong order, correct it.
Change-Id: I2762fc3a4c29f05ba8b7e71a5c6cad0be16c2ae0
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/drawable/DrawableContainer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/drawable/DrawableContainer.java b/graphics/java/android/graphics/drawable/DrawableContainer.java index b03fe3a..4a06805 100644 --- a/graphics/java/android/graphics/drawable/DrawableContainer.java +++ b/graphics/java/android/graphics/drawable/DrawableContainer.java @@ -295,9 +295,9 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { @Override public void setHotspotBounds(int left, int top, int right, int bottom) { if (mHotspotBounds == null) { - mHotspotBounds = new Rect(left, top, bottom, right); + mHotspotBounds = new Rect(left, top, right, bottom); } else { - mHotspotBounds.set(left, top, bottom, right); + mHotspotBounds.set(left, top, right, bottom); } if (mCurrDrawable != null) { |