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

Commit fc20b237 authored by Alexander Roederer's avatar Alexander Roederer
Browse files

hide Condition.sourceToString

We don't need this to be public for our purposes, so hiding for now to
be conservative with new api additions.

Bug: 313637705
Test: Hiding api; ran m update-api
Change-Id: I4588032b328b3d02b593ccbee77f109a1d0edf86
parent 5e8e346c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -40630,7 +40630,6 @@ package android.service.notification {
    method public static boolean isValidId(android.net.Uri, String);
    method public static android.net.Uri.Builder newId(android.content.Context);
    method public static String relevanceToString(int);
    method @FlaggedApi("android.app.modes_api") @NonNull public static String sourceToString(int);
    method public static String stateToString(int);
    method public void writeToParcel(android.os.Parcel, int);
    field @NonNull public static final android.os.Parcelable.Creator<android.service.notification.Condition> CREATOR;
+4 −1
Original line number Diff line number Diff line
@@ -257,7 +257,10 @@ public final class Condition implements Parcelable {
        throw new IllegalArgumentException("state is invalid: " + state);
    }

    /** Provides a human-readable string version of the Source enum. */
    /**
     * Provides a human-readable string version of the Source enum.
     * @hide
     */
    @FlaggedApi(Flags.FLAG_MODES_API)
    public static @NonNull String sourceToString(@Source int source) {
        if (source == SOURCE_UNKNOWN) return "SOURCE_UNKNOWN";