refactor: remove outdated TODO regarding shake detection optimization

This commit is contained in:
Dr-Blank 2024-09-30 02:15:51 -04:00
parent c7a5d68781
commit 681e3b2ebe
No known key found for this signature in database
GPG key ID: 7452CC63F210A266

View file

@ -31,10 +31,6 @@ class ShakeDetector extends _$ShakeDetector {
return null;
}
// TODO: implement optimization when no book is loaded, currently it is not possible
// as rebuild is not triggered when app is in background and player keeps rebuilding
// when paused or playing
// if no book is loaded, shake detection should not be enabled
final player = ref.watch(simpleAudiobookPlayerProvider);
player.playerStateStream.listen((event) {