mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-17 23:09:36 +00:00
恢复
This commit is contained in:
parent
1ca8e4889a
commit
aad510ea45
31 changed files with 777 additions and 239 deletions
|
|
@ -45,7 +45,7 @@ class ShakeDetector extends _$ShakeDetector {
|
|||
}
|
||||
});
|
||||
|
||||
if (player.session == null) {
|
||||
if (player.book == null) {
|
||||
_logger.config('No book is loaded, disabling shake detection');
|
||||
wasPlayerLoaded = false;
|
||||
return null;
|
||||
|
|
@ -87,7 +87,7 @@ class ShakeDetector extends _$ShakeDetector {
|
|||
required Ref ref,
|
||||
}) {
|
||||
final player = ref.read(playerProvider);
|
||||
if (player.session == null && shakeAction.isPlaybackManagementEnabled) {
|
||||
if (player.book == null && shakeAction.isPlaybackManagementEnabled) {
|
||||
_logger.warning('No book is loaded');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ part of 'shake_detector_provider.dart';
|
|||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$shakeDetectorHash() => r'0e7881edd663f34e38abf7584dd648ec691aaca8';
|
||||
String _$shakeDetectorHash() => r'b63082b9016958e6c1e46ff874c98a0c99721f04';
|
||||
|
||||
/// See also [ShakeDetector].
|
||||
@ProviderFor(ShakeDetector)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue