forked from organicmaps/organicmaps
[ios] Fixed p2p button selected state. (#4607)
This commit is contained in:
parent
ba32a88ce2
commit
814a133d12
1 changed files with 4 additions and 1 deletions
|
@ -525,7 +525,10 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell) {
|
|||
|
||||
if (state == MWMBottomMenuStateInactive || state == MWMBottomMenuStateRouting)
|
||||
{
|
||||
self.p2pButton.selected = NO;
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
self.p2pButton.selected =
|
||||
([MWMNavigationDashboardManager manager].state == MWMNavigationDashboardStatePrepare);
|
||||
});
|
||||
view.state = self.restoreState = state;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue