mirror of https://github.com/TeamNewPipe/NewPipe
Remove now unnecessary switch
This commit is contained in:
parent
0148d65cab
commit
be4e0cb3dc
|
@ -102,24 +102,12 @@ public class VideoPlaybackResolver implements PlaybackResolver {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
switch (selectedPlayer) {
|
||||
case MAIN -> {
|
||||
videoIndex = ListHelper.getDefaultResolutionWithDefaultFormat(
|
||||
context,
|
||||
getPlaybackQuality(),
|
||||
videoStreamsList
|
||||
);
|
||||
}
|
||||
case POPUP -> {
|
||||
videoIndex = ListHelper.getDefaultResolutionWithDefaultFormat(
|
||||
context,
|
||||
getPlaybackQuality(),
|
||||
videoStreamsList
|
||||
);
|
||||
}
|
||||
}
|
||||
videoIndex = ListHelper.getDefaultResolutionWithDefaultFormat(
|
||||
context,
|
||||
getPlaybackQuality(),
|
||||
videoStreamsList
|
||||
);
|
||||
}
|
||||
|
||||
final int audioIndex =
|
||||
|
|
Loading…
Reference in New Issue