mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-16 21:50:57 +00:00
Avoid animating the loading frame
This commit is contained in:
@@ -550,11 +550,16 @@ static NSMutableSet* hostList;
|
|||||||
|
|
||||||
- (void) showLoadingFrame {
|
- (void) showLoadingFrame {
|
||||||
LoadingFrameViewController* loadingFrame = [self.storyboard instantiateViewControllerWithIdentifier:@"loadingFrame"];
|
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 {
|
- (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];
|
[self enableNavigation];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user