diff options
author | Илья Гречухин <i.grechuhin@gmail.com> | 2016-10-31 17:44:58 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2016-10-31 17:44:58 +0300 |
commit | 814a133d127cecc5ab856fbd14d8849804b3ec63 (patch) | |
tree | 484908574f56c2f4cc8096167787becb97ac467f /iphone/Maps/Classes/CustomViews/MapViewControls | |
parent | ba32a88ce2041928d61702fc38bc00c4a1a0d823 (diff) |
[ios] Fixed p2p button selected state. (#4607)
Diffstat (limited to 'iphone/Maps/Classes/CustomViews/MapViewControls')
-rw-r--r-- | iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm index a0913dfa49..7bac18d51b 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm @@ -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; } |