mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-01 08:52:24 +00:00
Remove now unnecessary switch
This commit is contained in:
@@ -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 =
|
||||
|
Reference in New Issue
Block a user