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

Commit a1a6f7a5 authored by Kazuki Takise's avatar Kazuki Takise
Browse files

Trigger app transition explicitly when nothing gets resumed

Currently, even if a freeform task gets moved back, the app
transition doens't start until timeout happens because usually
resuming a top activity triggers OPENING/CLOSING transactions, but
nothing gets newly resumed in this case.

Bug: 157104277
Test: Minimizing a freeform window works without timeout.
Change-Id: I420909156a72a191f1b22dc41ea0b350d91fb2fb
parent ff779f6d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2613,6 +2613,9 @@ class ActivityStack extends Task {
            mRootWindowContainer.ensureVisibilityAndConfig(null /* starting */,
                    getDisplay().mDisplayId, false /* markFrozenIfConfigChanged */,
                    false /* deferResume */);
            // Usually resuming a top activity triggers the next app transition, but nothing's got
            // resumed in this case, so we need to execute it explicitly.
            getDisplay().mDisplayContent.executeAppTransition();
        } else {
            mRootWindowContainer.resumeFocusedStacksTopActivities();
        }