diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2017-03-07 17:51:30 +0300 |
---|---|---|
committer | Sergey Yershov <syershov@maps.me> | 2017-03-20 11:34:39 +0300 |
commit | 29443f45a545efa55d861f457e6e46909d0cd3bc (patch) | |
tree | 620e79592ee81ccd6bcd679e1d54cce4d47ae91f /iphone | |
parent | 8e4212d1a6aed3b3e7ffb7dd582005def30441fc (diff) |
[MAPSME-3998] [ios] Fixed PP show on iPad without wwan.
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/CustomViews/MapViewControls/MWMMapViewControlsManager.mm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/MWMMapViewControlsManager.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/MWMMapViewControlsManager.mm index 785aeabc39..a6672fda21 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/MWMMapViewControlsManager.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/MWMMapViewControlsManager.mm @@ -29,6 +29,7 @@ #include "Framework.h" #include "platform/local_country_file_utils.hpp" +#include "platform/platform.hpp" #include "storage/storage_helpers.hpp" @@ -156,11 +157,16 @@ extern NSString * const kAlohalyticsTapEventKey; }; using namespace network_policy; - if (!CanUseNetwork() && GetStage() == platform::NetworkPolicy::Stage::Session) + if (GetPlatform().ConnectionStatus() == Platform::EConnectionType::CONNECTION_WWAN && + !CanUseNetwork() && GetStage() == platform::NetworkPolicy::Stage::Session) + { [[MWMAlertViewController activeAlertController] presentMobileInternetAlertWithBlock:[show, info] { show(info); }]; + } else + { show(info); + } } - (void)searchViewDidEnterState:(MWMSearchManagerState)state |