Skip to content

Commit

Permalink
fix: Seeking while pausing is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses committed Dec 7, 2024
1 parent db18a27 commit 32e482d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/providers/status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ class PlaybackStatusProvider with ChangeNotifier {
if (!_hasPendingNotification) {
_hasPendingNotification = true;
SchedulerBinding.instance.addPostFrameCallback((_) {
if (_hasPendingNotification) {
notifyListeners();
_hasPendingNotification = false;
}
notifyListeners();
_hasPendingNotification = false;
});
}
}
Expand Down

0 comments on commit 32e482d

Please sign in to comment.