mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-07-07 01:41:33 +00:00
refactor: remove outdated TODO regarding shake detection optimization
This commit is contained in:
parent
c7a5d68781
commit
681e3b2ebe
1 changed files with 0 additions and 4 deletions
|
|
@ -31,10 +31,6 @@ class ShakeDetector extends _$ShakeDetector {
|
||||||
return null;
|
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
|
// if no book is loaded, shake detection should not be enabled
|
||||||
final player = ref.watch(simpleAudiobookPlayerProvider);
|
final player = ref.watch(simpleAudiobookPlayerProvider);
|
||||||
player.playerStateStream.listen((event) {
|
player.playerStateStream.listen((event) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue