diff options
| -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); |