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 {
|
- (void)dismiss {
|
||||||
|
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||||
if (self.presentingViewController) {
|
if (self.presentingViewController) {
|
||||||
[[MVMCoreNavigationHandler sharedNavigationHandler] dismissViewController:self animated:YES];
|
[[MVMCoreNavigationHandler sharedNavigationHandler] dismissViewController:self animated:YES];
|
||||||
} else if (self.navigationController) {
|
} else if (self.navigationController) {
|
||||||
[[MVMCoreNavigationHandler sharedNavigationHandler] popViewController:self animated:YES];
|
[[MVMCoreNavigationHandler sharedNavigationHandler] popViewController:self animated:YES];
|
||||||
}
|
}
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)isVisibleViewController {
|
- (BOOL)isVisibleViewController {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user