forked from organicmaps/organicmaps
[ios] More correct trick to fix landscape orientation on startup
This commit is contained in:
parent
df220cf7cd
commit
e92c4def4f
1 changed files with 6 additions and 1 deletions
|
@ -305,7 +305,12 @@ NSInteger compareAddress(id l, id r, void * context)
|
|||
}
|
||||
m_framework->SetOrientation(newOrientation);
|
||||
// needed to correctly startup in landscape
|
||||
[self.view layoutSubviews];
|
||||
static bool firstCall = true;
|
||||
if (firstCall)
|
||||
{
|
||||
[self.view layoutSubviews];
|
||||
firstCall = false;
|
||||
}
|
||||
}
|
||||
|
||||
- (void) OnTerminate
|
||||
|
|
Loading…
Add table
Reference in a new issue