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

Commit 12650956 authored by Evan Rosky's avatar Evan Rosky
Browse files

Don't include transient launches in visible-at-end tokens

visible-at-end is supposed to track apps which are expected
to be visible at the end of a transition. However, transient
launches are temporary so their visibility is likely to change.
Because of this, don't track them as visible-at-end so that
their new visibility is actually committed.

Bug: 226673164
Test: go to split, swipe to overview, restore split, check
      logs and make sure launcher has committed invisible.
Change-Id: I8f38d266732ed1f6e8ab28647185e970e7abef04
parent 1097ed3c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -713,6 +713,9 @@ class Transition extends Binder implements BLASTSyncEngine.TransactionReadyListe
        for (int i = mParticipants.size() - 1; i >= 0; --i) {
            final WindowContainer wc = mParticipants.valueAt(i);
            if (wc.asWindowToken() == null || !wc.isVisibleRequested()) continue;
            // don't include transient launches, though, since those are only temporarily visible.
            if (mTransientLaunches != null && wc.asActivityRecord() != null
                    && mTransientLaunches.containsKey(wc.asActivityRecord())) continue;
            mVisibleAtTransitionEndTokens.add(wc.asWindowToken());
        }