Merge "Use alpha instead of show/hide when creating animation leashes." into qt-r1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7e042c4226
@@ -193,7 +193,9 @@ class SurfaceAnimationRunner {
|
||||
public void onAnimationStart(Animator animation) {
|
||||
synchronized (mCancelLock) {
|
||||
if (!a.mCancelled) {
|
||||
mFrameTransaction.show(a.mLeash);
|
||||
// TODO: change this back to use show instead of alpha when b/138459974 is
|
||||
// fixed.
|
||||
mFrameTransaction.setAlpha(a.mLeash, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -324,9 +324,9 @@ class SurfaceAnimator {
|
||||
.setName(surface + " - animation-leash");
|
||||
final SurfaceControl leash = builder.build();
|
||||
t.setWindowCrop(leash, width, height);
|
||||
if (!hidden) {
|
||||
t.show(leash);
|
||||
}
|
||||
t.show(leash);
|
||||
// TODO: change this back to use show instead of alpha when b/138459974 is fixed.
|
||||
t.setAlpha(leash, hidden ? 0 : 1);
|
||||
t.reparent(surface, leash);
|
||||
return leash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user