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

Commit a1762666 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Only apply the task's pending transaction if it is detached

This fixes a flicker introduced by 88fbccf1 which may incorrectly apply
the display content's pending transaction instead of the task's.

Test: go/wm-smoke
Test: app to recents, see no flicker
Change-Id: If0a0431b2ea170ea833c1445599f0fdb9431dabf
parent 98434ff9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -996,7 +996,7 @@ public class RecentsAnimationController implements DeathRecipient {
                        .setWindowCrop(taskSurface, mFinishBounds.width(), mFinishBounds.height())
                        .apply();
                mFinishBounds.setEmpty();
            } else {
            } else if (!mTask.isAttached()) {
                // Apply the task's pending transaction in case it is detached and its transaction
                // is not reachable.
                mTask.getPendingTransaction().apply();