Merge branch 'bugfix/stack_main_thread' into 'release/9_1_0'

threading fix

See merge request BPHV_MIPS/mvm_core_ui!740
This commit is contained in:
Pfeil, Scott Robert 2021-07-22 19:55:32 +00:00
commit d03f8b1f52

View File

@ -1053,7 +1053,11 @@ CGFloat const PanelAnimationDuration = 0.2;
}
+ (CGFloat)getApplicationViewWidth {
return CGRectGetWidth([self getBounds:[MVMCoreUISession sharedGlobal].splitViewController.view.superview]);
__block CGFloat width;
[MVMCoreDispatchUtility performSyncBlockOnMainThread:^{
width = CGRectGetWidth([self getBounds:[MVMCoreUISession sharedGlobal].splitViewController.view.superview]);
}];
return width;
}
+ (CGFloat)getApplicationViewMaxSize {