Revert removal of single track option in TrackSelectionView.

PiperOrigin-RevId: 233584155
This commit is contained in:
tonihei 2019-02-12 12:39:40 +00:00 committed by Andrew Lewis
parent 1dd36ae391
commit 399a963e02

View file

@ -231,12 +231,6 @@ public class TrackSelectionView extends LinearLayout {
trackGroups = mappedTrackInfo.getTrackGroups(rendererIndex);
// Add per-track views.
if (trackGroups.length == 1 && trackGroups.get(0).length == 1) {
// Don't add group selection if there is nothing to select from.
trackViews = new CheckedTextView[0][0];
updateViewStates();
return;
}
trackViews = new CheckedTextView[trackGroups.length][];
boolean enableMultipleChoiceForMultipleOverrides =
allowMultipleOverrides && trackGroups.length > 1;