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

Commit e79f26af authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Remove synchronized call in PinnedStackController

Instead, rely on WindowManagerService.mGlobalLock for ordering and
avoiding deadlocks.

Bug: 143543347
Test: atest PinnedStackController
Test: atest NotificationManagerTest
Change-Id: Idcb426064892c9bb1ce7895f569ddbecb1f6b7b6
parent 62efd10e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -291,9 +291,12 @@ class PinnedStackController {
     * onTaskStackBoundsChanged() to be called.  But we still should update our known display info
     * with the new state so that we can update SystemUI.
     */
    synchronized void onDisplayInfoChanged(DisplayInfo displayInfo) {
    void onDisplayInfoChanged(DisplayInfo displayInfo) {
        synchronized (mService.mGlobalLock) {
            setDisplayInfo(displayInfo);
        notifyMovementBoundsChanged(false /* fromImeAdjustment */, false /* fromShelfAdjustment */);
            notifyMovementBoundsChanged(false /* fromImeAdjustment */,
                    false /* fromShelfAdjustment */);
        }
    }

    /**