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

Commit 4eac4338 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make sure updateSurfaceSize gets applied after changing config"

parents f3f9e26c 1a6d98bf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -714,10 +714,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) {