Skip to content

Commit

Permalink
fix: change battery check period to 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa committed Jan 20, 2024
1 parent 5416985 commit 9b9c29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uni/lib/model/providers/plausible/plausible_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class _PlausibleProviderState extends State<PlausibleProvider> {
}

_canUpdateBatteryState = false;
Timer(const Duration(seconds: 10), () => _canUpdateBatteryState = true);
Timer(const Duration(minutes: 1), () => _canUpdateBatteryState = true);

final battery = Battery();
_batteryLevel = await battery.batteryLevel;
Expand Down

0 comments on commit 9b9c29b

Please sign in to comment.