Do not require subtitleButton in custom layouts of StyledPlayerView
Every other subtitleButton has an if not null check, but does not force non null. Issue: #7962 PiperOrigin-RevId: 334124323
This commit is contained in:
parent
151a3d3bf5
commit
c95e43d9bd
@ -17,6 +17,9 @@
|
|||||||
([#7866](https://github.com/google/ExoPlayer/issues/7866)).
|
([#7866](https://github.com/google/ExoPlayer/issues/7866)).
|
||||||
* Text:
|
* Text:
|
||||||
* Add support for `\h` SSA/ASS style override code (non-breaking space).
|
* Add support for `\h` SSA/ASS style override code (non-breaking space).
|
||||||
|
* UI:
|
||||||
|
* Do not require subtitleButton in custom layouts of StyledPlayerView
|
||||||
|
([#7962](https://github.com/google/ExoPlayer/issues/7962)).
|
||||||
* Audio:
|
* Audio:
|
||||||
* Retry playback after some types of `AudioTrack` error.
|
* Retry playback after some types of `AudioTrack` error.
|
||||||
* Extractors:
|
* Extractors:
|
||||||
|
@ -2005,11 +2005,13 @@ public class StyledPlayerControlView extends FrameLayout {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
checkNotNull(subtitleButton)
|
|
||||||
.setImageDrawable(subtitleIsOn ? subtitleOnButtonDrawable : subtitleOffButtonDrawable);
|
if (subtitleButton != null) {
|
||||||
checkNotNull(subtitleButton)
|
subtitleButton.setImageDrawable(
|
||||||
.setContentDescription(
|
subtitleIsOn ? subtitleOnButtonDrawable : subtitleOffButtonDrawable);
|
||||||
|
subtitleButton.setContentDescription(
|
||||||
subtitleIsOn ? subtitleOnContentDescription : subtitleOffContentDescription);
|
subtitleIsOn ? subtitleOnContentDescription : subtitleOffContentDescription);
|
||||||
|
}
|
||||||
this.rendererIndices = rendererIndices;
|
this.rendererIndices = rendererIndices;
|
||||||
this.tracks = trackInfos;
|
this.tracks = trackInfos;
|
||||||
this.mappedTrackInfo = mappedTrackInfo;
|
this.mappedTrackInfo = mappedTrackInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user