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

Commit 1a6d98bf authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Make sure updateSurfaceSize gets applied after changing config

Otherwise we'll apply the old size.

Test: Rotate screen, make sure size is correct.
Test: go/wm-smoke
Change-Id: Ic9474952801241a16c344175104ec2b5d45e7ec8
parent ab4c1eaa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -716,10 +716,11 @@ public class TaskStack extends WindowContainer<Task> implements
    @Override
    public void onConfigurationChanged(Configuration newParentConfig) {
        final int prevWindowingMode = getWindowingMode();
        super.onConfigurationChanged(newParentConfig);

        // Only need to update surface size here since the super method will handle updating
        // surface position.
        updateSurfaceSize(getPendingTransaction());
        super.onConfigurationChanged(newParentConfig);
        final int windowingMode = getWindowingMode();

        if (mDisplayContent == null || prevWindowingMode == windowingMode) {