Fixed
Status Update
Comments
ni...@google.com <ni...@google.com>
ni...@google.com <ni...@google.com> #2
Information redacted by Android Beta Feedback.
No update yet.
Information redacted by Android Beta Feedback.
Description
Hi,
I was changing the duration of a Transition in a MotionScene and realized that a duration shorter than 16ms would make the application crash if "app:showPaths="true" is specified on the MotionLayout.
The stacktrace is:
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at androidx.constraintlayout.motion.widget.MotionLayout$DevModeDraw.drawTicks(MotionLayout.java:2086)
at androidx.constraintlayout.motion.widget.MotionLayout$DevModeDraw.drawAll(MotionLayout.java:2026)
at androidx.constraintlayout.motion.widget.MotionLayout$DevModeDraw.draw(MotionLayout.java:1998)
at androidx.constraintlayout.motion.widget.MotionLayout.dispatchDraw(MotionLayout.java:2298)
The debug drawing function is trying to access an array that isn't big enough with an animation smaller than 16ms.