mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -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 {
|
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) {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
VideoPlayerControlsCallback.setUp(this);
|
if (!kIsWeb || Platform.isAndroid) {
|
||||||
|
VideoPlayerControlsCallback.setUp(this);
|
||||||
|
}
|
||||||
await AudioService.init(
|
await AudioService.init(
|
||||||
builder: () => this,
|
builder: () => this,
|
||||||
config: const AudioServiceConfig(
|
config: const AudioServiceConfig(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue