Merge pull request #738 from lazydan/master

(ios): Fix incorrect view height from the second open time
This commit is contained in:
Dave Alden 2020-07-23 12:50:21 +01:00 committed by GitHub
commit 91ebdf2776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1071,6 +1071,7 @@ BOOL isExiting = FALSE;
// Run later to avoid the "took a long time" log message.
dispatch_async(dispatch_get_main_queue(), ^{
isExiting = TRUE;
lastReducedStatusBarHeight = 0.0;
if ([weakSelf respondsToSelector:@selector(presentingViewController)]) {
[[weakSelf presentingViewController] dismissViewControllerAnimated:YES completion:nil];
} else {