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

Commit aa561be4 authored by Jorge Gil's avatar Jorge Gil
Browse files

Do handle MSG_RESIZED when the dragResizing flag changes

Fixes a regression from Ied3e0cc24e6b04e71b15cd5fa89fc2a8d5bef8d0
where the resized messaged stopped being handled when only the
dragResizing flag changed. This causes mPendingDragResizing to get
stuck at 'true' even after drag-resize has ended until a different
resized messages syncs it back to 'false'.

Bug: 270202228
Test: drag resize a freeform task, verify the message is handled
after resizing ends

Change-Id: I0232db4317f1282b2015360db03aa90910e88a7b
parent 31e69820
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1900,9 +1900,10 @@ public final class ViewRootImpl implements ViewParent,
                && !Objects.equals(mTmpFrames.attachedFrame, attachedFrame);
        final boolean displayChanged = mDisplay.getDisplayId() != displayId;
        final boolean compatScaleChanged = mTmpFrames.compatScale != compatScale;
        final boolean dragResizingChanged = mPendingDragResizing != dragResizing;
        if (msg == MSG_RESIZED && !frameChanged && !configChanged && !attachedFrameChanged
                && !displayChanged && !forceNextWindowRelayout
                && !compatScaleChanged) {
                && !compatScaleChanged && !dragResizingChanged) {
            return;
        }