Merge "Always resume view when relaunching with preserved window" into udc-dev

This commit is contained in:
Riddle Hsu
2023-02-23 16:13:09 +00:00
committed by Android (Google) Code Review

View File

@@ -1136,7 +1136,7 @@ public final class ViewRootImpl implements ViewParent,
// Make sure to report the completion of draw for relaunch with preserved window.
reportNextDraw("rebuilt");
// Make sure to resume this root view when relaunching its host activity which was stopped.
if (mStopped && getHostVisibility() != View.GONE) {
if (mStopped) {
setWindowStopped(false);
}
}