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

Commit c1155698 authored by Charles Chen's avatar Charles Chen
Browse files

Dump log instead of throwing exception

Dump warning log instead of throwing exception to align
with #attachWindowContextToDisplayArea

Fixes: 423787412
Test: atest SizeCompatTests
Flag: EXEMPT bugfix
Change-Id: I19e7aa2033f0452d15e8d96d48118309474a7f83
parent dc31a023
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -3078,13 +3078,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,