diff options
| author | 2024-08-22 13:07:40 +0000 | |
|---|---|---|
| committer | 2024-08-22 13:07:40 +0000 | |
| commit | ebc3400e3ef11a23764a68b330546b475cf51d9e (patch) | |
| tree | 53afe0f71455ddfd5028e0f3f185c247ff5b20d7 | |
| parent | c714b4f577151161b996dfd8d5a2ed55e2d5ecaf (diff) | |
| parent | 3ba1937eef4463026a7c32f849a3cea8e94dbce1 (diff) | |
Merge "Remove check for frame size" into main
| -rw-r--r-- | core/java/android/view/PointerIcon.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/java/android/view/PointerIcon.java b/core/java/android/view/PointerIcon.java index 15351453a151..815fd1c49a38 100644 --- a/core/java/android/view/PointerIcon.java +++ b/core/java/android/view/PointerIcon.java @@ -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); |