Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@gmail.com>2017-03-07 17:51:30 +0300
committerSergey Yershov <syershov@maps.me>2017-03-20 11:34:39 +0300
commit29443f45a545efa55d861f457e6e46909d0cd3bc (patch)
tree620e79592ee81ccd6bcd679e1d54cce4d47ae91f /iphone
parent8e4212d1a6aed3b3e7ffb7dd582005def30441fc (diff)
[MAPSME-3998] [ios] Fixed PP show on iPad without wwan.
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Classes/CustomViews/MapViewControls/MWMMapViewControlsManager.mm8
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