From 1d4f99cc865a39b2d5b2f5034457539596488ec5 Mon Sep 17 00:00:00 2001 From: ibaker Date: Mon, 28 Mar 2022 17:24:56 +0100 Subject: [PATCH] Add PlayerView to the stable API PiperOrigin-RevId: 437777445 --- .../com/google/android/exoplayer2/ui/StyledPlayerView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java index d2fbd67bab..a698a12c3e 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java @@ -43,6 +43,7 @@ import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.TextView; +import androidx.annotation.ColorInt; import androidx.annotation.IntDef; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; @@ -625,7 +626,7 @@ public class StyledPlayerView extends FrameLayout implements AdViewProvider { * * @param color The background color. */ - public void setShutterBackgroundColor(int color) { + public void setShutterBackgroundColor(@ColorInt int color) { if (shutterView != null) { shutterView.setBackgroundColor(color); }