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

Commit 5d0abd46 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Resume stopped preserved window when relaunching visible activity" into udc-dev

parents 51d5db8c d6f0286f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1135,6 +1135,10 @@ public final class ViewRootImpl implements ViewParent,
        updateLastConfigurationFromResources(getConfiguration());
        // 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) {
            setWindowStopped(false);
        }
    }

    private Configuration getConfiguration() {