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