fix: Small bugfixes

This commit is contained in:
PartyDonut 2025-10-09 14:46:53 +02:00
parent 5722defe34
commit dd98bad61c
2 changed files with 4 additions and 1 deletions

View file

@ -42,6 +42,7 @@ extension ItemBaseModelsBooleans on List<ItemBaseModel> {
} }
FladderItemType get getMostCommonType { FladderItemType get getMostCommonType {
if (isEmpty) return FladderItemType.movie;
final Map<FladderItemType, int> counts = {}; final Map<FladderItemType, int> counts = {};
for (final item in this) { for (final item in this) {

View file

@ -56,7 +56,9 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro
Future<void> init() async { Future<void> init() async {
if (!initializedWrapper) { if (!initializedWrapper) {
initializedWrapper = true; initializedWrapper = true;
if (!kIsWeb || Platform.isAndroid) {
VideoPlayerControlsCallback.setUp(this); VideoPlayerControlsCallback.setUp(this);
}
await AudioService.init( await AudioService.init(
builder: () => this, builder: () => this,
config: const AudioServiceConfig( config: const AudioServiceConfig(