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

Commit 6d7e05dc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Validate hotspot when loading PointerIcon from resource"

parents db21daf9 44e7de3a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -461,8 +461,10 @@ public final class PointerIcon implements Parcelable {
                    + "refer to a bitmap drawable.");
        }

        final Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap();
        validateHotSpot(bitmap, hotSpotX, hotSpotY);
        // Set the properties now that we have successfully loaded the icon.
        mBitmap = ((BitmapDrawable)drawable).getBitmap();
        mBitmap = bitmap;
        mHotSpotX = hotSpotX;
        mHotSpotY = hotSpotY;
    }