mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
fix: Small bugfixes
This commit is contained in:
parent
5722defe34
commit
dd98bad61c
2 changed files with 4 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ extension ItemBaseModelsBooleans on List<ItemBaseModel> {
|
|||
}
|
||||
|
||||
FladderItemType get getMostCommonType {
|
||||
if (isEmpty) return FladderItemType.movie;
|
||||
final Map<FladderItemType, int> counts = {};
|
||||
|
||||
for (final item in this) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,9 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro
|
|||
Future<void> init() async {
|
||||
if (!initializedWrapper) {
|
||||
initializedWrapper = true;
|
||||
VideoPlayerControlsCallback.setUp(this);
|
||||
if (!kIsWeb || Platform.isAndroid) {
|
||||
VideoPlayerControlsCallback.setUp(this);
|
||||
}
|
||||
await AudioService.init(
|
||||
builder: () => this,
|
||||
config: const AudioServiceConfig(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue