Set start transform before animator starts.

Bug 16958319

ChangeImageTransform was waiting until the animator started
before setting the image matrix. Animators with a
start delay would leave the ImageView with the final transform
before the animator started.

Change-Id: I5ebc03b58a8697da3edf4a01c8906d60e7938f44
This commit is contained in:
George Mount
2014-08-18 15:40:57 -07:00
parent 7f15164ecb
commit dbe3655c0b

View File

@@ -182,6 +182,7 @@ public class ChangeImageTransform extends Transition {
if (endMatrix == null) {
endMatrix = Matrix.IDENTITY_MATRIX;
}
ANIMATED_TRANSFORM_PROPERTY.set(imageView, startMatrix);
animator = createMatrixAnimator(imageView, startMatrix, endMatrix);
}
return animator;