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

Commit ef4f18ad authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Reset docked stack resizing when divider dies

am: dcb68145

* commit 'dcb68145':
  Reset docked stack resizing when divider dies
parents 003a6d9b dcb68145
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1621,11 +1621,14 @@ final class WindowState implements WindowManagerPolicy.WindowState {
                        mService.removeWindowLocked(win);
                        if (win.mAttrs.type == TYPE_DOCK_DIVIDER) {
                            // The owner of the docked divider died :( We reset the docked stack,
                            // just in case they have the divider at an unstable position.
                            // just in case they have the divider at an unstable position. Better
                            // also reset drag resizing state, because the owner can't do it
                            // anymore.
                            final TaskStack stack = mService.mStackIdToStack.get(DOCKED_STACK_ID);
                            if (stack != null) {
                                stack.resetDockedStackToMiddle();
                            }
                            mService.setDockedStackResizing(false);
                        }
                    } else if (mHasSurface) {
                        Slog.e(TAG, "!!! LEAK !!! Window removed but surface still valid.");