mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Merge pull request #1809 from vector-im/riot_1798
Fix screen flashing at startup
This commit is contained in:
commit
eb23bd12bf
1 changed files with 7 additions and 1 deletions
|
@ -2468,7 +2468,13 @@ NSString *const kAppDelegateNetworkStatusDidChangeNotification = @"kAppDelegateN
|
|||
if (mxSession)
|
||||
{
|
||||
// Report this session to contact manager
|
||||
[[MXKContactManager sharedManager] addMatrixSession:mxSession];
|
||||
// But wait a bit that our launch animation screen is ready to show and
|
||||
// displayed if needed. As the processing in MXKContactManager can lock
|
||||
// the UI thread for several seconds, it is better to show the animation
|
||||
// during this blocking task.
|
||||
dispatch_after(dispatch_walltime(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
|
||||
[[MXKContactManager sharedManager] addMatrixSession:mxSession];
|
||||
});
|
||||
|
||||
// Update home data sources
|
||||
[_masterTabBarController addMatrixSession:mxSession];
|
||||
|
|
Loading…
Reference in a new issue