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

Commit 65607838 authored by Winson Chung's avatar Winson Chung
Browse files

Add some more logging for tracking null home overlay surfaces

Bug: 397390766
Flag: EXEMPT bugfix
Test: Additional logging
Change-Id: I461abed6dbfe815a5d61e82fe463d58920f45ddd
parent f5835117
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -262,7 +262,10 @@ public class ShellController {
    public void createExternalInterfaces(Bundle output) {
        // Invalidate the old binders
        for (int i = 0; i < mExternalInterfaces.size(); i++) {
            mExternalInterfaces.valueAt(i).invalidate();
            final ExternalInterfaceBinder extInterface = mExternalInterfaces.valueAt(i);
            ProtoLog.v(WM_SHELL_SYSUI_EVENTS, "Invalidating external interface: %s",
                    extInterface.getClass().getSimpleName());
            extInterface.invalidate();
        }
        mExternalInterfaces.clear();

+4 −0
Original line number Diff line number Diff line
@@ -1761,6 +1761,10 @@ public class Transitions implements RemoteCallable<Transitions>,
                    (controller) -> {
                        result[0] = controller.getHomeTaskOverlayContainer();
                    }, true /* blocking */);
            if (result[0] == null) {
                Log.wtf("WindowManagerShell", "Null home task overlay surface, "
                        + "mTransitions=%s" + (mTransitions != null));
            }
            // Return a copy as writing to parcel releases the original surface
            return new SurfaceControl(result[0], "Transitions.HomeOverlay");
        }