[ios] Fixed p2p button selected state. (#4607)

This commit is contained in:
Илья Гречухин 2016-10-31 17:44:58 +03:00 committed by Vlad Mihaylenko
parent ba32a88ce2
commit 814a133d12

View file

@ -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;
}