Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27cf8693 authored by Alexander Martinz's avatar Alexander Martinz Committed by Alan Viverette
Browse files

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
parent 424681e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {