summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-03-24 03:06:18 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-03-24 03:06:18 +0000
commit314d760ccf6635eddd9fb846bae0eb8d92036114 (patch)
treeaa61348c56fb8dc02cbb49ea8e8c32d3a8006694 /core/java/android
parent6d768fb7d6be046043178e7388eea19134cb9d7a (diff)
parent3be43d218e63806de60a7762546920ee2499bab3 (diff)
Merge "Fix typo in strict mode violation message" into sc-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/ContextImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/app/ContextImpl.java b/core/java/android/app/ContextImpl.java
index 0358fe56203c..8cbf76e1906f 100644
--- a/core/java/android/app/ContextImpl.java
+++ b/core/java/android/app/ContextImpl.java
@@ -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.";