Merge "Fix typo in strict mode violation message" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-03-24 03:06:18 +00:00
committed by Android (Google) Code Review

View File

@@ -1995,8 +1995,8 @@ class ContextImpl extends Context {
final String errorMessage = "Tried to access visual service "
+ SystemServiceRegistry.getSystemServiceClassName(name)
+ " from a non-visual Context:" + getOuterContext();
final String message = "Visual services, such as WindowManager"
+ "or LayoutInflater should be accessed from Activity or other visual "
final String message = "Visual services, such as WindowManager "
+ "or LayoutInflater should be accessed from Activity or another visual "
+ "Context. Use an Activity or a Context created with "
+ "Context#createWindowContext(int, Bundle), which are adjusted to "
+ "the configuration and visual bounds of an area on screen.";