Skip to content

An open-source cross-platform alternative to AirDrop

feat: polish system animation fetching

Tien Do Nam09b9482358b4
diff --git a/app/lib/provider/persistence_provider.dart b/app/lib/provider/persistence_provider.dart
index 3aa37fca..4954ecad 100644
--- a/app/lib/provider/persistence_provider.dart
+++ b/app/lib/provider/persistence_provider.dart
@@ -166,8 +166,11 @@ class PersistenceService {
}
if (isFirstAppStart) {
- _logger.info('Is FirstStartUp');
- await prefs.setBool(_enableAnimations, await getSystemAnimationsStatus());
+ final systemAnimations = await getSystemAnimationsStatus();
+ if (!systemAnimations) {
+ _logger.info('System animations are disabled, disabling animations in the app.');
+ await prefs.setBool(_enableAnimations, false);
+ }
}
if (prefs.getString(_colorKey) == null) {