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

Commit f1a634cb authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

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
parent 5a1d791e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.");
    }

    /**