A cross platform Audiobookshelf client for Android and iOS
Dart
Stop the rotation lock coming up unlocked after a restart
Barnabas65e044f98584
diff --git a/lib/main.dart b/lib/main.dartindex 65fca1d0..7d0324a2 100644--- a/lib/main.dart+++ b/lib/main.dart@@ -555,6 +555,11 @@ class _AuthGateState extends State<AuthGate> {snappyTransitionsNotifier.value = await PlayerSettings.getSnappyTransitions();classicWordingNotifier.value = await PlayerSettings.getClassicWording();PlayerSettings.showExplicitBadge = await PlayerSettings.getShowExplicitBadge();+ // Rotation lock: main() applied it before scope was active, so that pass+ // read the never-written unscoped key and always came up unlocked.+ try {+ await applyOrientationLock();+ } catch (_) {}// Restore cover seed color{final seedInt = await PlayerSettings.getCoverSeedColor();