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

Commit 2557607f authored by Charles Chen's avatar Charles Chen Committed by Android (Google) Code Review
Browse files

Merge "Dump log instead of throwing exception" into main

parents 370345d9 c1155698
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -3077,13 +3077,8 @@ public class WindowManagerService extends IWindowManager.Stub
                // registration in DisplayContent#onParentChanged at DisplayContent initialization.
                final DisplayContent dc = mRoot.getDisplayContent(displayId);
                if (dc == null) {
                    if (callingPid != MY_PID) {
                        throw new IllegalArgumentException(
                                "attachWindowContextToDisplayContent: trying to attach to a"
                                        + " non-existing display:" + displayId);
                    }
                    // Early return if this method is invoked from system process.
                    // See above comments for more detail.
                    ProtoLog.w(WM_ERROR, "attachWindowContextToDisplayContent: trying"
                            + " to attach to a non-existing display:" + displayId);
                    return null;
                }
                mWindowContextListenerController.registerWindowContainerListener(wpc, clientToken,