diff options
| author | 2019-10-18 09:10:56 -0700 | |
|---|---|---|
| committer | 2019-10-18 09:10:56 -0700 | |
| commit | f1a634cbd76fd6688e1d004c1dcfa242ef9f4e4f (patch) | |
| tree | 022daf1dbf3c4235df8a09a88b7af5379a09f669 | |
| parent | 5a1d791ebfff93856e13113f4e8b4180ab04cd92 (diff) | |
Context#createFeatureContext is not implemented by superclass
Throw a exception so that no dev assumes that it is.
Test: CtsAppOpsTestCases (the only code calling the API for now)
Change-Id: I8ff2a8288ec908d49ec708b710045a230333e5d0
| -rw-r--r-- | core/java/android/content/Context.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 0aab2086b911..cb618639048a 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -5353,7 +5353,7 @@ public abstract class Context { * @see #getFeatureId() */ public @NonNull Context createFeatureContext(@Nullable String featureId) { - return this; + throw new RuntimeException("Not implemented. Must override in a subclass."); } /** |