Merge branch 'bugfix/main_thread_fix' into 'release/6_21'
Move self.presentingViewController access onto the main thread. See merge request BPHV_MIPS/mvm_core_ui!150
This commit is contained in:
commit
2273d76c1f
@ -67,11 +67,13 @@
|
||||
}
|
||||
|
||||
- (void)dismiss {
|
||||
if (self.presentingViewController) {
|
||||
[[MVMCoreNavigationHandler sharedNavigationHandler] dismissViewController:self animated:YES];
|
||||
} else if (self.navigationController) {
|
||||
[[MVMCoreNavigationHandler sharedNavigationHandler] popViewController:self animated:YES];
|
||||
}
|
||||
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||
if (self.presentingViewController) {
|
||||
[[MVMCoreNavigationHandler sharedNavigationHandler] dismissViewController:self animated:YES];
|
||||
} else if (self.navigationController) {
|
||||
[[MVMCoreNavigationHandler sharedNavigationHandler] popViewController:self animated:YES];
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
- (BOOL)isVisibleViewController {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user