mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Suppress warnings in ImaUtil
ImaUtil calls VideoProgressUpdate.equals() which is annotated as hidden, which causes lint errors with gradle. #minor-release PiperOrigin-RevId: 504306210 (cherry picked from commit 5f6e172c8fce652adf2c05e8f2d041c793e900ea)
This commit is contained in:
parent
846258b69c
commit
207d67b7af
@ -270,6 +270,7 @@ import java.util.Set;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Returns a human-readable representation of a video progress update. */
|
/** Returns a human-readable representation of a video progress update. */
|
||||||
|
@SuppressWarnings("RestrictedApi") // VideoProgressUpdate.equals() is annotated as hidden.
|
||||||
public static String getStringForVideoProgressUpdate(VideoProgressUpdate videoProgressUpdate) {
|
public static String getStringForVideoProgressUpdate(VideoProgressUpdate videoProgressUpdate) {
|
||||||
if (VideoProgressUpdate.VIDEO_TIME_NOT_READY.equals(videoProgressUpdate)) {
|
if (VideoProgressUpdate.VIDEO_TIME_NOT_READY.equals(videoProgressUpdate)) {
|
||||||
return "not ready";
|
return "not ready";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user