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

Commit 0baa1bc6 authored by Robert Carr's avatar Robert Carr
Browse files

Fix synchronization error for Seamless rotation.

Missing synchronized block in timeout codepath.

Bug: 28823590
Change-Id: I38cff63b559b5f8cd65698af27a1100208ff2600
parent 606f4d5d
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -8690,6 +8690,7 @@ public class WindowManagerService extends IWindowManager.Stub
                case SEAMLESS_ROTATION_TIMEOUT: {
                    // Rotation only supported on primary display.
                    // TODO(multi-display)
                    synchronized(mWindowMap) {
                        final DisplayContent displayContent = getDefaultDisplayContentLocked();
                        final WindowList windows = displayContent.getWindowList();
                        boolean layoutNeeded = false;
@@ -8705,6 +8706,7 @@ public class WindowManagerService extends IWindowManager.Stub
                            mWindowPlacerLocked.performSurfacePlacement();
                        }
                    }
                }
                break;
            }
            if (DEBUG_WINDOW_TRACE) {