Merge "Fix race between AnimationListener and DragState"
This commit is contained in:
committed by
Android (Google) Code Review
commit
352be20d06
@@ -645,15 +645,15 @@ class DragState {
|
||||
try (final SurfaceControl.Transaction transaction = new SurfaceControl.Transaction()) {
|
||||
transaction.setPosition(
|
||||
mSurfaceControl,
|
||||
(float) mAnimator.getAnimatedValue(ANIMATED_PROPERTY_X),
|
||||
(float) mAnimator.getAnimatedValue(ANIMATED_PROPERTY_Y));
|
||||
(float) animation.getAnimatedValue(ANIMATED_PROPERTY_X),
|
||||
(float) animation.getAnimatedValue(ANIMATED_PROPERTY_Y));
|
||||
transaction.setAlpha(
|
||||
mSurfaceControl,
|
||||
(float) mAnimator.getAnimatedValue(ANIMATED_PROPERTY_ALPHA));
|
||||
(float) animation.getAnimatedValue(ANIMATED_PROPERTY_ALPHA));
|
||||
transaction.setMatrix(
|
||||
mSurfaceControl,
|
||||
(float) mAnimator.getAnimatedValue(ANIMATED_PROPERTY_SCALE), 0,
|
||||
0, (float) mAnimator.getAnimatedValue(ANIMATED_PROPERTY_SCALE));
|
||||
(float) animation.getAnimatedValue(ANIMATED_PROPERTY_SCALE), 0,
|
||||
0, (float) animation.getAnimatedValue(ANIMATED_PROPERTY_SCALE));
|
||||
transaction.apply();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user