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

Commit 50d4e335 authored by Antonio Kantek's avatar Antonio Kantek Committed by Automerger Merge Worker
Browse files

Merge "Improve error message in WMS#isInTouchMode" into udc-dev am: a69c3fe7 am: e53542c1

parents adad5fed e53542c1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3913,8 +3913,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();
        }