mirror of
https://github.com/androidx/media.git
synced 2025-05-07 07:30:22 +08:00
Add PlayerView to the stable API
PiperOrigin-RevId: 437777445
This commit is contained in:
parent
ad6396a3e5
commit
1d4f99cc86
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user