mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-04 23:16:10 +00:00
Avoid animating the loading frame
This commit is contained in:
@@ -550,11 +550,16 @@ static NSMutableSet* hostList;
|
||||
|
||||
- (void) showLoadingFrame {
|
||||
LoadingFrameViewController* loadingFrame = [self.storyboard instantiateViewControllerWithIdentifier:@"loadingFrame"];
|
||||
[self.navigationController presentViewController:loadingFrame animated:YES completion:nil];
|
||||
|
||||
// Avoid animating this as it significantly prolongs the loading frame's
|
||||
// time on screen and can lead to warnings about dismissing while it's
|
||||
// still animating.
|
||||
[self.navigationController presentViewController:loadingFrame animated:NO completion:nil];
|
||||
}
|
||||
|
||||
- (void) hideLoadingFrame {
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
// See comment above in showLoadingFrame about why we don't animate this
|
||||
[self dismissViewControllerAnimated:NO completion:nil];
|
||||
[self enableNavigation];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user