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

Commit 771cda18 authored by lijilou's avatar lijilou Committed by Jilou li
Browse files

The binder die callback should add the wms global lock.

Test: monkey test
Flag: EXEMPT bugfix
Bug: 394776842
Change-Id: I8cbc87ae423ce2948812e33f985be983dddcf380
parent 69c28d69
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -723,8 +723,14 @@ public class WindowManagerService extends IWindowManager.Stub
            new WallpaperVisibilityListeners();

    IDisplayChangeWindowController mDisplayChangeController = null;
    private final DeathRecipient mDisplayChangeControllerDeath =
            () -> mDisplayChangeController = null;
    private final DeathRecipient mDisplayChangeControllerDeath = new DeathRecipient() {
        @Override
        public void binderDied() {
            synchronized (mGlobalLock) {
                mDisplayChangeController = null;
            }
        }
    };

    final DisplayWindowListenerController mDisplayNotificationController;
    final TaskSystemBarsListenerController mTaskSystemBarsListenerController;