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

Commit 46f72d9a authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Fix ordering of check minimized state callback" into qt-r1-dev am: d75df1b6

am: 7a1563db

Change-Id: Id3410016e833c4f94ad5fd3caa2c8fcb12dade09
parents 49345a99 7a1563db
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -569,7 +569,6 @@ public class DockedStackDividerController {
            mMaximizeMeetFraction = getClipRevealMeetFraction(stack);
            animDuration = (long) (mAnimationDuration * mMaximizeMeetFraction);
        }
        mService.mAtmInternal.notifyDockedStackMinimizedChanged(minimizedDock);
        final int size = mDockedStackListeners.beginBroadcast();
        for (int i = 0; i < size; ++i) {
            final IDockedStackListener listener = mDockedStackListeners.getBroadcastItem(i);
@@ -581,6 +580,9 @@ public class DockedStackDividerController {
            }
        }
        mDockedStackListeners.finishBroadcast();
        // Only notify ATM after we update the remote listeners, otherwise it may trigger another
        // minimize change, which would lead to an inversion of states send to the listeners
        mService.mAtmInternal.notifyDockedStackMinimizedChanged(minimizedDock);
    }

    void notifyDockSideChanged(int newDockSide) {