From e730feb98ad8c30908b9802f4ead4e5d66a04547 Mon Sep 17 00:00:00 2001 From: tonihei Date: Thu, 18 Jan 2024 00:14:27 -0800 Subject: [PATCH] Add missing IntDef annotation PiperOrigin-RevId: 599414024 --- api.txt | 2 +- .../common/src/main/java/androidx/media3/common/Player.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api.txt b/api.txt index ac4cc97233..884492e951 100644 --- a/api.txt +++ b/api.txt @@ -763,7 +763,7 @@ package androidx.media3.common { method @Deprecated public void setDeviceMuted(boolean); method public void setDeviceMuted(boolean, @androidx.media3.common.C.VolumeFlags int); method @Deprecated public void setDeviceVolume(@IntRange(from=0) int); - method public void setDeviceVolume(@IntRange(from=0) int, int); + method public void setDeviceVolume(@IntRange(from=0) int, @androidx.media3.common.C.VolumeFlags int); method public void setMediaItem(androidx.media3.common.MediaItem); method public void setMediaItem(androidx.media3.common.MediaItem, boolean); method public void setMediaItem(androidx.media3.common.MediaItem, long); diff --git a/libraries/common/src/main/java/androidx/media3/common/Player.java b/libraries/common/src/main/java/androidx/media3/common/Player.java index 3d84ad85f4..0577caf85a 100644 --- a/libraries/common/src/main/java/androidx/media3/common/Player.java +++ b/libraries/common/src/main/java/androidx/media3/common/Player.java @@ -3462,7 +3462,7 @@ public interface Player { * @param volume The volume to set. * @param flags Either 0 or a bitwise combination of one or more {@link C.VolumeFlags}. */ - void setDeviceVolume(@IntRange(from = 0) int volume, int flags); + void setDeviceVolume(@IntRange(from = 0) int volume, @C.VolumeFlags int flags); /** * @deprecated Use {@link #increaseDeviceVolume(int)} instead.