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

Commit ebc3400e authored by Asmita Poddar's avatar Asmita Poddar Committed by Android (Google) Code Review
Browse files

Merge "Remove check for frame size" into main

parents c714b4f5 3ba1937e
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -556,12 +556,9 @@ public final class PointerIcon implements Parcelable {
                                + "is a different type from the others. All frames should be the "
                                + "same type.");
                    }
                    if (drawableFrame.getIntrinsicWidth() != width ||
                        drawableFrame.getIntrinsicHeight() != height) {
                        throw new IllegalArgumentException("The bitmap size of " + i + "-th frame "
                                + "is different. All frames should have the exact same size and "
                                + "share the same hotspot.");
                    }
                    // TODO(b/361232935): Check when bitmap size of the ith frame is different
                    // drawableFrame.getIntrinsicWidth() != width ||
                    // drawableFrame.getIntrinsicHeight() != height
                    if (isVectorAnimation) {
                        drawableFrame = getBitmapDrawableFromVectorDrawable(resources,
                                (VectorDrawable) drawableFrame, pointerScale);