diff --git a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.h b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.h
index e16336c93c..8caaf4649d 100644
--- a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.h
+++ b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.h
@@ -50,6 +50,7 @@
- (void)presentPersonalInfoWarningAlertWithBlock:(nonnull TMWMVoidBlock)block;
- (void)presentTrackWarningAlertWithCancelBlock:(nonnull TMWMVoidBlock)block;
- (void)presentSearchNoResultsAlert;
+- (void)presentMobileInternetAlert;
- (void)closeAlert:(nullable TMWMVoidBlock)completion;
- (nonnull instancetype)init __attribute__((unavailable("call -initWithViewController: instead!")));
diff --git a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm
index d536d48578..9f9f115f39 100644
--- a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm
+++ b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm
@@ -4,6 +4,7 @@
#import "MWMDownloadTransitMapAlert.h"
#import "MWMLocationAlert.h"
#import "MWMLocationNotFoundAlert.h"
+#import "MWMMobileInternetAlert.h"
#import "MWMSearchNoResultsAlert.h"
#import "MapViewController.h"
#import "MapsAppDelegate.h"
@@ -205,6 +206,7 @@ static NSString * const kAlertControllerNibIdentifier = @"MWMAlertViewController
[alert update];
}
+- (void)presentMobileInternetAlert { [self displayAlert:[MWMMobileInternetAlert alert]]; }
- (void)presentEditorViralAlert { [self displayAlert:[MWMAlert editorViralAlert]]; }
- (void)presentOsmAuthAlert { [self displayAlert:[MWMAlert osmAuthAlert]]; }
- (void)displayAlert:(MWMAlert *)alert
diff --git a/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.h b/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.h
new file mode 100644
index 0000000000..1e059d7aff
--- /dev/null
+++ b/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.h
@@ -0,0 +1,7 @@
+#import "MWMAlert.h"
+
+@interface MWMMobileInternetAlert : MWMAlert
+
++ (instancetype)alert;
+
+@end
diff --git a/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.mm b/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.mm
new file mode 100644
index 0000000000..c12a0f8651
--- /dev/null
+++ b/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.mm
@@ -0,0 +1,38 @@
+#import "MWMMobileInternetAlert.h"
+#import "Statistics.h"
+
+namespace
+{
+NSString * const kStatisticsEvent = @"Mobile Internet Settings Alert";
+}
+
+@implementation MWMMobileInternetAlert
+
++ (instancetype)alert
+{
+ [Statistics logEvent:kStatisticsEvent withParameters:@{kStatAction : kStatOpen}];
+ MWMMobileInternetAlert * alert =
+ [[[NSBundle mainBundle] loadNibNamed:[MWMMobileInternetAlert className] owner:nil options:nil]
+ firstObject];
+ return alert;
+}
+
+- (IBAction)alwaysTap
+{
+ [Statistics logEvent:kStatMobileInternet withParameters:@{kStatValue : kStatAlways}];
+ [self close:nil];
+}
+
+- (IBAction)askTap
+{
+ [Statistics logEvent:kStatMobileInternet withParameters:@{kStatValue : kStatAsk}];
+ [self close:nil];
+}
+
+- (IBAction)neverTap
+{
+ [Statistics logEvent:kStatisticsEvent withParameters:@{kStatAction : kStatNever}];
+ [self close:nil];
+}
+
+@end
diff --git a/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.xib b/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.xib
new file mode 100644
index 0000000000..bd2c6e5720
--- /dev/null
+++ b/iphone/Maps/Classes/CustomAlert/MobileInternetAlert/MWMMobileInternetAlert.xib
@@ -0,0 +1,194 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ HelveticaNeue-Medium
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/iphone/Maps/MWMMobileInternetViewController.h b/iphone/Maps/MWMMobileInternetViewController.h
new file mode 100644
index 0000000000..bdd9ce1e5b
--- /dev/null
+++ b/iphone/Maps/MWMMobileInternetViewController.h
@@ -0,0 +1,5 @@
+#import "MWMTableViewController.h"
+
+@interface MWMMobileInternetViewController : MWMTableViewController
+
+@end
diff --git a/iphone/Maps/MWMMobileInternetViewController.mm b/iphone/Maps/MWMMobileInternetViewController.mm
new file mode 100644
index 0000000000..11f3aa03ea
--- /dev/null
+++ b/iphone/Maps/MWMMobileInternetViewController.mm
@@ -0,0 +1,63 @@
+#import "MWMMobileInternetViewController.h"
+#import "SelectableCell.h"
+#import "Statistics.h"
+
+@interface MWMMobileInternetViewController ()
+
+@property(weak, nonatomic) IBOutlet SelectableCell * always;
+@property(weak, nonatomic) IBOutlet SelectableCell * ask;
+@property(weak, nonatomic) IBOutlet SelectableCell * never;
+@property(weak, nonatomic) SelectableCell * selected;
+
+@end
+
+@implementation MWMMobileInternetViewController
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ self.title = L(@"pref_mobile_internet");
+
+ self.never.accessoryType = UITableViewCellAccessoryCheckmark;
+ _selected = self.never;
+}
+
+- (void)setSelected:(SelectableCell *)selected
+{
+ if ([_selected isEqual:selected])
+ return;
+
+ _selected = selected;
+ NSString * statValue = nil;
+ if ([selected isEqual:self.always])
+ {
+ statValue = kStatAlways;
+ }
+ else if ([selected isEqual:self.ask])
+ {
+ statValue = kStatAsk;
+ }
+ else if ([selected isEqual:self.never])
+ {
+ statValue = kStatNever;
+ }
+
+ [Statistics logEvent:kStatMobileInternet withParameters:@{kStatValue : statValue}];
+}
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ SelectableCell * selected = self.selected;
+ selected.accessoryType = UITableViewCellAccessoryNone;
+ selected = [tableView cellForRowAtIndexPath:indexPath];
+ selected.accessoryType = UITableViewCellAccessoryCheckmark;
+ selected.selected = NO;
+ self.selected = selected;
+}
+
+- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
+{
+ return L(@"pref_mobile_internet_hint");
+}
+
+@end
diff --git a/iphone/Maps/Maps.xcodeproj/project.pbxproj b/iphone/Maps/Maps.xcodeproj/project.pbxproj
index 6524df5b5c..cdebe62766 100644
--- a/iphone/Maps/Maps.xcodeproj/project.pbxproj
+++ b/iphone/Maps/Maps.xcodeproj/project.pbxproj
@@ -227,6 +227,12 @@
3497A93A1B5CF8A900F51E55 /* MWMNavigationDashboardManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3497A9371B5CF8A900F51E55 /* MWMNavigationDashboardManager.mm */; };
3499C6861D51D3A600A1048A /* UIButton+Orientation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3499C6851D51D3A600A1048A /* UIButton+Orientation.mm */; };
3499C6871D51D3A700A1048A /* UIButton+Orientation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3499C6851D51D3A600A1048A /* UIButton+Orientation.mm */; };
+ 349A137C1DEC0B6200C7DB60 /* MWMMobileInternetViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 349A137B1DEC0B6200C7DB60 /* MWMMobileInternetViewController.mm */; };
+ 349A137D1DEC0B6200C7DB60 /* MWMMobileInternetViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 349A137B1DEC0B6200C7DB60 /* MWMMobileInternetViewController.mm */; };
+ 349A13821DEC138C00C7DB60 /* MWMMobileInternetAlert.mm in Sources */ = {isa = PBXBuildFile; fileRef = 349A13801DEC138C00C7DB60 /* MWMMobileInternetAlert.mm */; };
+ 349A13831DEC138C00C7DB60 /* MWMMobileInternetAlert.mm in Sources */ = {isa = PBXBuildFile; fileRef = 349A13801DEC138C00C7DB60 /* MWMMobileInternetAlert.mm */; };
+ 349A13841DEC138C00C7DB60 /* MWMMobileInternetAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = 349A13811DEC138C00C7DB60 /* MWMMobileInternetAlert.xib */; };
+ 349A13851DEC138C00C7DB60 /* MWMMobileInternetAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = 349A13811DEC138C00C7DB60 /* MWMMobileInternetAlert.xib */; };
349A357A1B53D4C9009677EE /* MWMCircularProgress.mm in Sources */ = {isa = PBXBuildFile; fileRef = 349A35761B53D4C9009677EE /* MWMCircularProgress.mm */; };
349A357B1B53D4C9009677EE /* MWMCircularProgress.xib in Resources */ = {isa = PBXBuildFile; fileRef = 349A35771B53D4C9009677EE /* MWMCircularProgress.xib */; };
349A357C1B53D4C9009677EE /* MWMCircularProgressView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 349A35791B53D4C9009677EE /* MWMCircularProgressView.mm */; };
@@ -1183,6 +1189,11 @@
3497A9371B5CF8A900F51E55 /* MWMNavigationDashboardManager.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; lineEnding = 0; path = MWMNavigationDashboardManager.mm; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
3499C6841D51D3A600A1048A /* UIButton+Orientation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIButton+Orientation.h"; sourceTree = ""; };
3499C6851D51D3A600A1048A /* UIButton+Orientation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = "UIButton+Orientation.mm"; sourceTree = ""; };
+ 349A137A1DEC0B6200C7DB60 /* MWMMobileInternetViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MWMMobileInternetViewController.h; sourceTree = ""; };
+ 349A137B1DEC0B6200C7DB60 /* MWMMobileInternetViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMMobileInternetViewController.mm; sourceTree = ""; };
+ 349A137F1DEC138C00C7DB60 /* MWMMobileInternetAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MWMMobileInternetAlert.h; sourceTree = ""; };
+ 349A13801DEC138C00C7DB60 /* MWMMobileInternetAlert.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMMobileInternetAlert.mm; sourceTree = ""; };
+ 349A13811DEC138C00C7DB60 /* MWMMobileInternetAlert.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MWMMobileInternetAlert.xib; sourceTree = ""; };
349A35751B53D4C9009677EE /* MWMCircularProgress.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MWMCircularProgress.h; sourceTree = ""; };
349A35761B53D4C9009677EE /* MWMCircularProgress.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMCircularProgress.mm; sourceTree = ""; };
349A35771B53D4C9009677EE /* MWMCircularProgress.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MWMCircularProgress.xib; sourceTree = ""; };
@@ -2390,6 +2401,16 @@
path = ../NavigationDashboard;
sourceTree = "";
};
+ 349A137E1DEC138C00C7DB60 /* MobileInternetAlert */ = {
+ isa = PBXGroup;
+ children = (
+ 349A137F1DEC138C00C7DB60 /* MWMMobileInternetAlert.h */,
+ 349A13801DEC138C00C7DB60 /* MWMMobileInternetAlert.mm */,
+ 349A13811DEC138C00C7DB60 /* MWMMobileInternetAlert.xib */,
+ );
+ path = MobileInternetAlert;
+ sourceTree = "";
+ };
349A35741B53D4C9009677EE /* CircularProgress */ = {
isa = PBXGroup;
children = (
@@ -2953,6 +2974,7 @@
F64F195F1AB8125C006EAF7E /* CustomAlert */ = {
isa = PBXGroup;
children = (
+ 349A137E1DEC138C00C7DB60 /* MobileInternetAlert */,
3462258B1DDC5D76001E8752 /* SearchAlert */,
F6FE3C351CC50FDF00A73196 /* PlaceDoesntExist */,
F6BD1D1D1CA412700047B8E8 /* AuthAlert */,
@@ -3371,6 +3393,8 @@
34AA09D61DC3A14A002E8083 /* MWMAboutControllerHeader.xib */,
348C26031D701B9F00813924 /* MWMHelpController.h */,
348C26041D701B9F00813924 /* MWMHelpController.mm */,
+ 349A137A1DEC0B6200C7DB60 /* MWMMobileInternetViewController.h */,
+ 349A137B1DEC0B6200C7DB60 /* MWMMobileInternetViewController.mm */,
);
name = Settings;
path = ..;
@@ -3550,6 +3574,7 @@
4A23D15F1B8B4DD700D4EB6F /* resources-xxhdpi_clear in Resources */,
34A759D21DC7953A0078C3AE /* Welcome.storyboard in Resources */,
F64F199E1AB81A00006EAF7E /* MWMDefaultAlert.xib in Resources */,
+ 349A13841DEC138C00C7DB60 /* MWMMobileInternetAlert.xib in Resources */,
EEFE7C1512F8C9E1006AF8C3 /* fonts_whitelist.txt in Resources */,
F67E751C1DB635FE00D6741F /* MWMPPView.xib in Resources */,
F64F4B711B4A41D40081A24A /* MWMDownloaderDialogHeader.xib in Resources */,
@@ -3713,6 +3738,7 @@
34CCFDE31C22A2EF00F28959 /* MWMPlacePageOpeningHoursCell.xib in Resources */,
F69E91241D99511F00D7A778 /* _MWMOHHeaderCell.xib in Resources */,
6741A94D1BF340DE002C974C /* resources-xxhdpi_clear in Resources */,
+ 349A13851DEC138C00C7DB60 /* MWMMobileInternetAlert.xib in Resources */,
F653CE0E1C6DEB2E00A453F1 /* MWMDropDown.xib in Resources */,
6741A94F1BF340DE002C974C /* MWMDefaultAlert.xib in Resources */,
6741A9501BF340DE002C974C /* fonts_whitelist.txt in Resources */,
@@ -3930,6 +3956,7 @@
34CC4C0E1B82069C00E44C1F /* MWMSearchTabbedCollectionViewCell.mm in Sources */,
34B646BD1CEB6FC000E0C7A5 /* MWMEditorAdditionalNameTableViewCell.mm in Sources */,
F6588E2C1B15C26700EE1E58 /* MWMTextView.mm in Sources */,
+ 349A137C1DEC0B6200C7DB60 /* MWMMobileInternetViewController.mm in Sources */,
34C2431B1CEDBDBA0006B7DC /* MWMEditorAdditionalNamesTableViewController.mm in Sources */,
34FE4C451BCC013500066718 /* MWMMapWidgets.mm in Sources */,
347FD8831C60B2CE002FB65E /* MWMOpeningHoursTableViewCell.mm in Sources */,
@@ -3993,6 +4020,7 @@
3465E7D81B6658C000854C4D /* MWMAPIBar.mm in Sources */,
F6D409FA1B319BD70041730F /* ContextViews.mm in Sources */,
342CC5F11C2D7730005F3FE5 /* MWMAuthorizationLoginViewController.mm in Sources */,
+ 349A13821DEC138C00C7DB60 /* MWMMobileInternetAlert.mm in Sources */,
347FD8851C60B2CE002FB65E /* MWMOpeningHoursTimeSelectorTableViewCell.mm in Sources */,
34EB84581C073DF70004689F /* MWMOpeningHoursEditorViewController.mm in Sources */,
F617B4E31D8FDDD5007A1A4E /* MWMBookmarkCell.mm in Sources */,
@@ -4179,6 +4207,7 @@
34B646BE1CEB6FC000E0C7A5 /* MWMEditorAdditionalNameTableViewCell.mm in Sources */,
347FD8841C60B2CE002FB65E /* MWMOpeningHoursTableViewCell.mm in Sources */,
34C2431C1CEDBDBA0006B7DC /* MWMEditorAdditionalNamesTableViewController.mm in Sources */,
+ 349A137D1DEC0B6200C7DB60 /* MWMMobileInternetViewController.mm in Sources */,
34A759DC1DC797880078C3AE /* MWMWelcomeController.mm in Sources */,
6741A9C31BF340DE002C974C /* MWMPlacePageActionBar.mm in Sources */,
6741A9C61BF340DE002C974C /* MWMSearchCommonCell.mm in Sources */,
@@ -4242,6 +4271,7 @@
F626D5301C3E840600C17D15 /* MWMNightModeController.mm in Sources */,
6741A9E81BF340DE002C974C /* MWMAPIBar.mm in Sources */,
34B104271D6F040E00C8B577 /* MWMAboutController.mm in Sources */,
+ 349A13831DEC138C00C7DB60 /* MWMMobileInternetAlert.mm in Sources */,
347FD8861C60B2CE002FB65E /* MWMOpeningHoursTimeSelectorTableViewCell.mm in Sources */,
6741A9EB1BF340DE002C974C /* ContextViews.mm in Sources */,
6741A9EC1BF340DE002C974C /* MWMCircularProgress.mm in Sources */,
diff --git a/iphone/Maps/Settings.storyboard b/iphone/Maps/Settings.storyboard
index 94585a306f..78600e6be5 100644
--- a/iphone/Maps/Settings.storyboard
+++ b/iphone/Maps/Settings.storyboard
@@ -29,7 +29,7 @@
-
+
@@ -254,15 +254,62 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -273,7 +320,7 @@
-
+
@@ -302,13 +349,13 @@
-
+
-
+
@@ -321,7 +368,7 @@
-
+
@@ -347,13 +394,13 @@
-
+
-
+
@@ -366,7 +413,7 @@
-
+
@@ -396,14 +443,14 @@
-
+
-
-
+
+
@@ -414,7 +461,7 @@
-
+
@@ -443,13 +490,13 @@
-
+
-
+
@@ -462,7 +509,7 @@
-
+
@@ -488,13 +535,13 @@
-
+
-
+
@@ -507,7 +554,7 @@
-
+
@@ -533,14 +580,14 @@
-
+
-
-
+
+
@@ -550,8 +597,8 @@
-
-
+
+
@@ -584,14 +631,14 @@
-
+
-
-
+
+
@@ -617,14 +664,14 @@
-
+
-
-
+
+
@@ -666,6 +713,7 @@
+
@@ -681,6 +729,7 @@
+
@@ -705,7 +754,7 @@
-
+
@@ -738,7 +787,7 @@
-
+
@@ -771,7 +820,7 @@
-
+
@@ -813,7 +862,7 @@
-
+
@@ -833,7 +882,7 @@
-
+
@@ -866,7 +915,7 @@
-
+
@@ -899,7 +948,7 @@
-
+
@@ -932,7 +981,7 @@
-
+
@@ -965,7 +1014,7 @@
-
+
@@ -998,7 +1047,7 @@
-
+
@@ -1061,7 +1110,7 @@
-
+
@@ -1093,7 +1142,7 @@
-
+
@@ -1150,7 +1199,7 @@
-
+
@@ -1207,7 +1256,7 @@
-
+
@@ -1237,7 +1286,7 @@
-
+
@@ -1350,7 +1399,7 @@
-
+
@@ -1380,7 +1429,7 @@
-
+
@@ -1410,7 +1459,7 @@
-
+
@@ -1440,7 +1489,7 @@
-
+
@@ -1470,7 +1519,7 @@
-
+
@@ -1505,7 +1554,7 @@
-
+
@@ -1540,7 +1589,7 @@
-
+
@@ -1594,5 +1643,136 @@
+
+
+
+
+
+
+
+
+
+
+ Мобильный интернет требуется для отображения более детальной информации о местах: фотографий, цен, отзывов.
+
+Приложение не использует мобильный интернет в роуминге.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/iphone/Maps/Settings/MWMSettingsViewController.mm b/iphone/Maps/Settings/MWMSettingsViewController.mm
index 5f3334c19d..4ebed5de25 100644
--- a/iphone/Maps/Settings/MWMSettingsViewController.mm
+++ b/iphone/Maps/Settings/MWMSettingsViewController.mm
@@ -24,6 +24,7 @@ extern NSString * const kAlohalyticsTapEventKey;
@property(weak, nonatomic) IBOutlet SwitchCell * zoomButtonsCell;
@property(weak, nonatomic) IBOutlet SwitchCell * is3dCell;
@property(weak, nonatomic) IBOutlet SwitchCell * autoDownloadCell;
+@property(weak, nonatomic) IBOutlet LinkCell * mobileInternetCell;
@property(weak, nonatomic) IBOutlet LinkCell * recentTrackCell;
@property(weak, nonatomic) IBOutlet SwitchCell * compassCalibrationCell;
@property(weak, nonatomic) IBOutlet SwitchCell * statisticsCell;
@@ -84,6 +85,8 @@ extern NSString * const kAlohalyticsTapEventKey;
self.autoDownloadCell.switchButton.on = [MWMSettings autoDownloadEnabled];
self.autoDownloadCell.delegate = self;
+ self.mobileInternetCell.infoLabel.text = L(@"pref_ask");
+
if (!GpsTracker::Instance().IsEnabled())
{
self.recentTrackCell.infoLabel.text = L(@"duration_disabled");
@@ -230,6 +233,12 @@ extern NSString * const kAlohalyticsTapEventKey;
withParameters:@{kStatAction : kStatChangeMeasureUnits}];
[self performSegueWithIdentifier:@"SettingsToUnits" sender:nil];
}
+ else if (cell == self.mobileInternetCell)
+ {
+ [Statistics logEvent:kStatEventName(kStatSettings, kStatMobileInternet)
+ withParameters:@{kStatAction : kStatChangeMobileInternet}];
+ [self performSegueWithIdentifier:@"SettingsToMobileInternetSegue" sender:nil];
+ }
else if (cell == self.recentTrackCell)
{
[Statistics logEvent:kStatEventName(kStatSettings, kStatRecentTrack)
diff --git a/iphone/Maps/Statistics/StatisticsStrings.h b/iphone/Maps/Statistics/StatisticsStrings.h
index 3492918d69..bc8a509887 100644
--- a/iphone/Maps/Statistics/StatisticsStrings.h
+++ b/iphone/Maps/Statistics/StatisticsStrings.h
@@ -10,8 +10,10 @@ static NSString * const kStatAdd = @"Add";
static NSString * const kStatAddPlace = @"Add place";
static NSString * const kStatAlert = @"Alert";
static NSString * const kStatAllMaps = @"all_maps";
+static NSString * const kStatAlways = @"Always";
static NSString * const kStatApplication = @"Application";
static NSString * const kStatApply = @"Apply";
+static NSString * const kStatAsk = @"Ask";
static NSString * const kStatAuthorization = @"Authorization";
static NSString * const kStatAutoDownload = @"Auto download";
static NSString * const kStatAutoZoom = @"Autozoom";
@@ -32,6 +34,7 @@ static NSString * const kStatChangeBookmarkGroup = @"Change bookmark group";
static NSString * const kStatChangeLanguage = @"Change language";
static NSString * const kStatChangeMapViewStyle = @"Change map view style";
static NSString * const kStatChangeMeasureUnits = @"Change measure units";
+static NSString * const kStatChangeMobileInternet = @"Change mobile internet";
static NSString * const kStatChangeNightMode = @"Change night mode";
static NSString * const kStatChangeRecentTrack = @"Change recent track";
static NSString * const kStatChangeRoutingMode = @"Change routing mode";
@@ -124,12 +127,14 @@ static NSString * const kStatMapViewStyleSettings = @"Map view style settings";
static NSString * const kStatMenu = @"Menu";
static NSString * const kStatMigrationBig2SmallMWM = @"Big mwms to small mwms migration counter";
static NSString * const kStatMiles = @"Miles";
+static NSString * const kStatMobileInternet = @"Mobile Internet";
static NSString * const kStatMoreApps = @"More apps";
static NSString * const kStatMyPosition = @"My position";
static NSString * const kStatMyTargetAppsDisplayed = @"MyTargetAppsDisplayed";
static NSString * const kStatMyTargetAppsClicked = @"MyTargetAppsClicked";
static NSString * const kStatName = @"Name";
static NSString * const kStatNavigationDashboard = @"Navigation dashboard";
+static NSString * const kStatNever = @"Never";
static NSString * const kStatNext = @"Next";
static NSString * const kStatNightMode = @"NightMode";
static NSString * const kStatNo = @"No";