mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-12 14:17:38 +00:00
Remove now unnecessary switch
This commit is contained in:
@@ -102,25 +102,13 @@ public class VideoPlaybackResolver implements PlaybackResolver {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
switch (selectedPlayer) {
|
|
||||||
case MAIN -> {
|
|
||||||
videoIndex = ListHelper.getDefaultResolutionWithDefaultFormat(
|
videoIndex = ListHelper.getDefaultResolutionWithDefaultFormat(
|
||||||
context,
|
context,
|
||||||
getPlaybackQuality(),
|
getPlaybackQuality(),
|
||||||
videoStreamsList
|
videoStreamsList
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
case POPUP -> {
|
|
||||||
videoIndex = ListHelper.getDefaultResolutionWithDefaultFormat(
|
|
||||||
context,
|
|
||||||
getPlaybackQuality(),
|
|
||||||
videoStreamsList
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
final int audioIndex =
|
final int audioIndex =
|
||||||
ListHelper.getAudioFormatIndex(context, audioStreamsList, audioTrack);
|
ListHelper.getAudioFormatIndex(context, audioStreamsList, audioTrack);
|
||||||
|
Reference in New Issue
Block a user