Skip to content

Commit

Permalink
Update PlayerControlView.java
Browse files Browse the repository at this point in the history
fix: code comment typos on PlayerControlView.java
  • Loading branch information
xeinebiu authored Jan 20, 2024
1 parent 763d6af commit 1208a34
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ private void onSettingViewClicked(int position) {
displaySettingsWindow(playbackSpeedAdapter, checkNotNull(settingsButton));
} else if (position == SETTINGS_AUDIO_TRACK_SELECTION_POSITION) {
displaySettingsWindow(audioTrackSelectionAdapter, checkNotNull(settingsButton));
} else if(position == SETTINGS_VIDEO_TRACK_SELECTION_POSITION) {
} else if (position == SETTINGS_VIDEO_TRACK_SELECTION_POSITION) {
displaySettingsWindow(videoTrackSelectionAdapter, checkNotNull(settingsButton));
} else {
settingsWindow.dismiss();
Expand Down Expand Up @@ -2102,7 +2102,7 @@ private final class VideoTrackSelectionAdapter extends TrackSelectionAdapter {

@Override
public void onBindViewHolderAtZeroPosition(SubSettingViewHolder holder) {
// Audio track selection option includes "Auto" at the top.
// Video track selection option includes "Auto" at the top.
holder.textView.setText(R.string.exo_track_selection_auto);
// hasSelectionOverride is true means there is an explicit track selection, not "Auto".
TrackSelectionParameters parameters = checkNotNull(player).getTrackSelectionParameters();
Expand Down Expand Up @@ -2152,7 +2152,7 @@ public void onTrackSelection(String subtext) {
@Override
public void init(List<TrackInformation> trackInformations) {
this.tracks = trackInformations;
// Update subtext in settings menu with current audio track selection.
// Update subtext in settings menu with current video track selection.
TrackSelectionParameters params = checkNotNull(player).getTrackSelectionParameters();
if (trackInformations.isEmpty()) {
settingsAdapter.setSubTextAtPosition(
Expand Down

0 comments on commit 1208a34

Please sign in to comment.