Skip to content

Commit

Permalink
Application lifecycle handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kern, Thomas committed Jan 16, 2024
1 parent 0fa0f90 commit ec9e413
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/components/busy_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class _BusyWrapperState extends State<BusyWrapper> with TickerProviderStateMixin

void _startAnimation() {
_stopAnimation();
timer = Timer(const Duration(milliseconds: 800), () {
timer = Timer(const Duration(milliseconds: 1000), () {
_primaryController.forward(from: 0);
_secondaryController.forward(from: 0);
setState(() {
Expand Down Expand Up @@ -81,12 +81,6 @@ class _BusyWrapperState extends State<BusyWrapper> with TickerProviderStateMixin
super.dispose();
}

@override
void didUpdateWidget(covariant BusyWrapper oldWidget) {
_startAnimation();
super.didUpdateWidget(oldWidget);
}

void stop() async {
_stopAnimation();
mopidyService.stop();
Expand Down

0 comments on commit ec9e413

Please sign in to comment.