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

Commit 90cf754e authored by Antonio Kantek's avatar Antonio Kantek
Browse files

Improve error message in WMS#isInTouchMode

Fix: 279962497
Test: m
Change-Id: Ibddc76bc27809dd449989b31f77163759d030b84
parent ff9486ba
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3905,8 +3905,9 @@ public class WindowManagerService extends IWindowManager.Stub
        synchronized (mGlobalLock) {
            final DisplayContent displayContent = mRoot.getDisplayContent(displayId);
            if (displayContent == null) {
                throw new IllegalStateException("No touch mode is defined for displayId {"
                        + displayId + "}");
                throw new IllegalStateException("Failed to retrieve the touch mode state for"
                        + "display {" + displayId + "}: display is not registered in "
                        + "WindowRootContainer");
            }
            return displayContent.isInTouchMode();
        }