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

Commit 5b49c7fb authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Notify draw for relaunch with preserved window

In case any logic depends on ActivityRecord#startRelaunching
~ WindowState#finishDrawing can receive paired invocation.

Fix: 264634241
Test: An activity calls recreate().
      There will be a log "finishDrawing of relaunch: Window".
Change-Id: I9406ab5cbca5b3c9c407a136bf4fcb97111d78b8
parent 099f8243
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1116,6 +1116,8 @@ public final class ViewRootImpl implements ViewParent,
        // Update the last resource config in case the resource configuration was changed while
        // activity relaunched.
        updateLastConfigurationFromResources(getConfiguration());
        // Make sure to report the completion of draw for relaunch with preserved window.
        reportNextDraw("rebuilt");
    }

    private Configuration getConfiguration() {