forked from organicmaps/organicmaps
[MAPSME-6234] [ios] Closed menu on discover tap.
This commit is contained in:
parent
7230a6b33a
commit
60871fa7ab
1 changed files with 3 additions and 1 deletions
|
@ -233,7 +233,7 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell) {
|
|||
- (void)menuActionDownloadMaps
|
||||
{
|
||||
[Statistics logEvent:kStatMenu withParameters:@{kStatButton : kStatDownloadMaps}];
|
||||
self.state = MWMBottomMenuStateInactive;
|
||||
self.state = self.restoreState;
|
||||
[self.delegate actionDownloadMaps:MWMMapDownloaderModeDownloaded];
|
||||
}
|
||||
|
||||
|
@ -302,6 +302,8 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell) {
|
|||
[Statistics logEvent:kStatDiscoveryButtonOpen
|
||||
withParameters:@{kStatNetwork: [Statistics connectionTypeToString:connectionType]}];
|
||||
|
||||
self.state = self.restoreState;
|
||||
|
||||
auto discovery = [MWMDiscoveryController instance];
|
||||
using namespace network_policy;
|
||||
auto const canUseNetwork = CanUseNetwork();
|
||||
|
|
Loading…
Add table
Reference in a new issue