improvement: get already existing sortingTrackGroups if exists

This commit is contained in:
Yoni Obadia 2020-08-26 14:31:44 +02:00
parent 181676d950
commit 425bd2d801

View file

@ -258,7 +258,7 @@ public class TrackSelectionView extends LinearLayout {
defaultView.setEnabled(true);
trackGroups = mappedTrackInfo.getTrackGroups(rendererIndex);
sortedTrackGroups = initSortedTrackGroups(trackGroups);
sortedTrackGroups = sortedTrackGroups != null ? sortedTrackGroups : initSortedTrackGroups(trackGroups);
// Add per-track views.
trackViews = new CheckedTextView[sortedTrackGroups.length][];