mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
fix: Bunc of uncaught exceptions
This commit is contained in:
parent
9c964e7b41
commit
9f6aa1e489
6 changed files with 34 additions and 23 deletions
|
|
@ -53,6 +53,7 @@ class MediaControlsWrapper extends BaseAudioHandler {
|
|||
|
||||
Future<void> init() async {
|
||||
if (!initMediaControls) {
|
||||
initMediaControls = true;
|
||||
await AudioService.init(
|
||||
builder: () => this,
|
||||
config: const AudioServiceConfig(
|
||||
|
|
@ -66,7 +67,6 @@ class MediaControlsWrapper extends BaseAudioHandler {
|
|||
androidShowNotificationBadge: true,
|
||||
),
|
||||
);
|
||||
initMediaControls = true;
|
||||
}
|
||||
|
||||
final player = switch (ref.read(videoPlayerSettingsProvider.select((value) => value.wantedPlayer))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue