Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7e2e164 authored by Winson Chung's avatar Winson Chung
Browse files

Account for animating children when updating task visibility

- It's possible for the root task to be hidden and not made visible
  again if only its children (ie. a leaf task) are animating

Bug: 218403080
Bug: 213603716
Test: atest NexusLauncherTests
Change-Id: I5f8b61afcbeff1974c8a60f62490afa602428219
parent b70d7493
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3289,7 +3289,7 @@ class Task extends TaskFragment {
        // We intend to let organizer manage task visibility but it doesn't
        // have enough information until we finish shell transitions.
        // 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 (show != mLastSurfaceShowing) {
                getSyncTransaction().setVisibility(mSurfaceControl, show);