Merge "Improve error message in WMS#isInTouchMode" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a69c3fe77a
@@ -3915,8 +3915,9 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
synchronized (mGlobalLock) {
|
synchronized (mGlobalLock) {
|
||||||
final DisplayContent displayContent = mRoot.getDisplayContent(displayId);
|
final DisplayContent displayContent = mRoot.getDisplayContent(displayId);
|
||||||
if (displayContent == null) {
|
if (displayContent == null) {
|
||||||
throw new IllegalStateException("No touch mode is defined for displayId {"
|
throw new IllegalStateException("Failed to retrieve the touch mode state for"
|
||||||
+ displayId + "}");
|
+ "display {" + displayId + "}: display is not registered in "
|
||||||
|
+ "WindowRootContainer");
|
||||||
}
|
}
|
||||||
return displayContent.isInTouchMode();
|
return displayContent.isInTouchMode();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user