Skip to content

Commit

Permalink
fix: collect analytics from users without bat save capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa committed Mar 5, 2024
1 parent 0218b6c commit 1cc7990
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uni/lib/model/providers/plausible/plausible_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ class _PlausibleProviderState extends State<PlausibleProvider> {

try {
_isInBatterySaveMode = await battery.isInBatterySaveMode;
} on PlatformException catch (_) {}
} on PlatformException catch (_) {
_isInBatterySaveMode = false;
}

_updateAnalyticsState();
}
Expand Down

0 comments on commit 1cc7990

Please sign in to comment.