From 27cf86939d918b2d6b32a0650a48b8a2afaa26b6 Mon Sep 17 00:00:00 2001 From: Alexander Martinz Date: Wed, 6 May 2015 00:44:24 +0200 Subject: 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 --- graphics/java/android/graphics/drawable/DrawableContainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics') 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) { -- cgit v1.1