Skip to content

Commit

Permalink
Add clarifying comment about activity indicator animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmathias committed Aug 5, 2023
1 parent f54f4a7 commit 384d386
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GoogleSignIn/Sources/GIDTimedLoader/GIDTimedLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ - (void)presentLoadingViewController {
self.animationStatus = GIDTimedLoaderAnimationStatusAnimating;
self.loadingTimeStamp = CACurrentMediaTime();
dispatch_async(dispatch_get_main_queue(), ^{
// Since this loading VC may be reused, the activity indicator may have been stopped; restart it
[self.loadingViewController.activityIndicator startAnimating];
[self.presentingViewController presentViewController:self.loadingViewController
animated:YES
completion:nil];
Expand Down

0 comments on commit 384d386

Please sign in to comment.