Merge "Account for animating children when updating task visibility" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-01 03:23:28 +00:00
committed by Android (Google) Code Review

View File

@@ -3292,7 +3292,7 @@ class Task extends TaskFragment {
// We intend to let organizer manage task visibility but it doesn't // We intend to let organizer manage task visibility but it doesn't
// have enough information until we finish shell transitions. // have enough information until we finish shell transitions.
// In the mean time we do an easy fix here. // In the mean time we do an easy fix here.
final boolean show = isVisible() || isAnimating(TRANSITION | PARENTS); final boolean show = isVisible() || isAnimating(TRANSITION | PARENTS | CHILDREN);
if (mSurfaceControl != null) { if (mSurfaceControl != null) {
if (show != mLastSurfaceShowing) { if (show != mLastSurfaceShowing) {
getSyncTransaction().setVisibility(mSurfaceControl, show); getSyncTransaction().setVisibility(mSurfaceControl, show);