Skip to content

Commit

Permalink
fix: not resuming after 7 seconds of track failed play dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Oct 3, 2024
1 parent 8efe0a6 commit 8a78327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/base/audio_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ class NamidaAudioVideoHandler<Q extends Playable> extends BasicAudioHandler<Q> {
final hadPermissionBefore = await Permission.manageExternalStorage.isGranted;
if (checkInterrupted()) return;
if (hadPermissionBefore) {
pause();
final wasPlayWhenReady = willPlayWhenReady;
onPauseRaw().then((_) => setPlayWhenReady(wasPlayWhenReady));
cancelPlayErrorSkipTimer();
playErrorRemainingSecondsToSkip.value = 7;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 4.5.19-beta+241003149
version: 4.5.2-beta+241003152

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit 8a78327

Please sign in to comment.