Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Fix setting hotspot bounds in a drawable container
Browse files Browse the repository at this point in the history
We are passing the wrong parameters for setting hotspot bounds.
Bottom and right are in the wrong order, correct it.

Change-Id: I2762fc3a4c29f05ba8b7e71a5c6cad0be16c2ae0
  • Loading branch information
amartinz committed May 5, 2015
1 parent d5c780a commit 859df3b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -291,9 +291,9 @@ public void setHotspot(float x, float y) {
@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) {
Expand Down

0 comments on commit 859df3b

Please sign in to comment.