Merge "TIF: Unhide TvContract.Programs.Genres#isCanonical" into nyc-dev
am: ca601d9303
* commit 'ca601d9303feb39ab164ddedfcb01225847fdc32':
TIF: Unhide TvContract.Programs.Genres#isCanonical
This commit is contained in:
@@ -22854,6 +22854,7 @@ package android.media.tv {
|
||||
public static final class TvContract.Programs.Genres {
|
||||
method public static java.lang.String[] decode(java.lang.String);
|
||||
method public static java.lang.String encode(java.lang.String...);
|
||||
method public static boolean isCanonical(java.lang.String);
|
||||
field public static final java.lang.String ANIMAL_WILDLIFE = "ANIMAL_WILDLIFE";
|
||||
field public static final java.lang.String ARTS = "ARTS";
|
||||
field public static final java.lang.String COMEDY = "COMEDY";
|
||||
|
||||
@@ -22863,6 +22863,7 @@ package android.media.tv {
|
||||
public static final class TvContract.Programs.Genres {
|
||||
method public static java.lang.String[] decode(java.lang.String);
|
||||
method public static java.lang.String encode(java.lang.String...);
|
||||
method public static boolean isCanonical(java.lang.String);
|
||||
field public static final java.lang.String ANIMAL_WILDLIFE = "ANIMAL_WILDLIFE";
|
||||
field public static final java.lang.String ARTS = "ARTS";
|
||||
field public static final java.lang.String COMEDY = "COMEDY";
|
||||
|
||||
@@ -1394,13 +1394,11 @@ public final class TvContract {
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether a given genre is canonical or not.
|
||||
* Returns whether a given text is a canonical genre defined in {@link Genres}.
|
||||
*
|
||||
* @param genre The name of genre to be checked.
|
||||
* @return {@code true} if the genre is canonical, otherwise {@code false}.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static boolean isCanonical(String genre) {
|
||||
return CANONICAL_GENRES.contains(genre);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user