Add PlayerView to the stable API

PiperOrigin-RevId: 437777445
This commit is contained in:
ibaker 2022-03-28 17:24:56 +01:00 committed by Ian Baker
parent ad6396a3e5
commit 1d4f99cc86

View File

@ -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);
}