hunterstich b9d70d3d86 [Motion] Fix zero-length motion path container transform bug.
getPosTan, which calculates the translation of the conatienr bounds, no-ops if the startView doesn't move to a new position (when the startView and endView are top aligned and centered horizontally on one another). This was causing motionPathPositions, the int array holding the x and y of the animated bounds to never be initialized, defaulting to 0, and throwing off the bounds calculation.
This CL updates the int array with actual default x and y values so when getPosTan no-ops, the motionPathPosition array contains the correct values.

Resolves https://github.com/material-components/material-components-android/issues/1161

PiperOrigin-RevId: 319247326
(cherry picked from commit 3c9096d45128f11f3a84dca9f650373ff196cdce)
2020-07-15 16:09:04 -04:00
..
2020-07-15 16:07:18 -04:00
2020-03-13 10:46:58 -04:00