From 17e5ab611cc417cce7c17cafc7045f5aa2eb970e Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Fri, 2 Jun 2023 09:21:47 +0600 Subject: [PATCH] fix: track doesn't play after change --- lib/collections/intents.dart | 1 - lib/services/audio_player/mk_state_player.dart | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/collections/intents.dart b/lib/collections/intents.dart index 732b96de2..4b5deac00 100644 --- a/lib/collections/intents.dart +++ b/lib/collections/intents.dart @@ -6,7 +6,6 @@ import 'package:spotube/components/player/player_controls.dart'; import 'package:spotube/collections/routes.dart'; import 'package:spotube/models/logger.dart'; import 'package:spotube/provider/proxy_playlist/proxy_playlist_provider.dart'; -import 'package:spotube/provider/proxy_playlist/proxy_playlist_provider.dart'; import 'package:spotube/services/audio_player/audio_player.dart'; import 'package:spotube/utils/platform.dart'; import 'package:window_manager/window_manager.dart'; diff --git a/lib/services/audio_player/mk_state_player.dart b/lib/services/audio_player/mk_state_player.dart index 8f9097433..de9453576 100644 --- a/lib/services/audio_player/mk_state_player.dart +++ b/lib/services/audio_player/mk_state_player.dart @@ -52,6 +52,7 @@ class MkPlayerWithState extends Player { await super.open(_playlist!.medias[_playlist!.index], play: true); } else { await next(); + await play(); } }), streams.playlist.listen((event) {