From fb1c9dee04b8670e29d61c4eeb034d9503e44ddf Mon Sep 17 00:00:00 2001 From: ibaker Date: Tue, 18 Oct 2022 10:55:13 +0000 Subject: [PATCH] Remove more references to overriding layouts from Player(Control)View In exoplayer2 this affects StyledPlayer(Control)View #minor-release PiperOrigin-RevId: 481878940 (cherry picked from commit a5583c04bb6c199633e2b1edf036060c0d33b616) --- .../ui/StyledPlayerControlView.java | 23 +++++++------------ .../exoplayer2/ui/StyledPlayerView.java | 9 ++++---- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlView.java index 4ef733d039..cd9819bdb5 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlView.java @@ -84,12 +84,13 @@ import java.util.concurrent.CopyOnWriteArrayList; /** * A view for controlling {@link Player} instances. * - *

A StyledPlayerControlView can be customized by setting attributes (or calling corresponding - * methods), or overriding drawables. + *

A {@code StyledPlayerControlView} can be customized by setting attributes (or calling + * corresponding methods), or overriding drawables. * *

Attributes

* - * The following attributes can be set on a StyledPlayerControlView when used in a layout XML file: + * The following attributes can be set on a {@code StyledPlayerControlView} when used in a layout + * XML file: * * - *
  • {@code controller_layout_id} - Specifies the id of the layout to be inflated. See - * below for more details. - * - *
  • All attributes that can be set on {@link DefaultTimeBar} can also be set on a - * StyledPlayerControlView, and will be propagated to the inflated {@link DefaultTimeBar} - * unless the layout is overridden to specify a custom {@code exo_progress} (see below). + *
  • All attributes that can be set on {@link DefaultTimeBar} can also be set on a {@code + * StyledPlayerControlView}, and will be propagated to the inflated {@link DefaultTimeBar}. * * *

    Overriding drawables

    * - * The drawables used by StyledPlayerControlView (with its default layout file) can be overridden by - * drawables with the same names defined in your application. The drawables that can be overridden - * are: + * The drawables used by {@code StyledPlayerControlView} can be overridden by drawables with the + * same names defined in your application. The drawables that can be overridden are: * * *
  • All attributes that can be set on {@link StyledPlayerControlView} and {@link * DefaultTimeBar} can also be set on a StyledPlayerView, and will be propagated to the - * inflated {@link StyledPlayerControlView} unless the layout is overridden to specify a - * custom {@code exo_controller}. + * inflated {@link StyledPlayerControlView}. * * *

    Overriding drawables

    * - * The drawables used by {@link StyledPlayerControlView} (with its default layout file) can be - * overridden by drawables with the same names defined in your application. See the {@link - * StyledPlayerControlView} documentation for a list of drawables that can be overridden. + * The drawables used by {@link StyledPlayerControlView} can be overridden by drawables with the + * same names defined in your application. See the {@link StyledPlayerControlView} documentation for + * a list of drawables that can be overridden. */ public class StyledPlayerView extends FrameLayout implements AdViewProvider {