Merge "Trigger app transition explicitly when nothing gets resumed" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-05-27 15:57:23 +00:00
committed by Android (Google) Code Review

View File

@@ -2638,6 +2638,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();
}