diff --git a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.h b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.h index 5020bce756..151fa3c1b7 100644 --- a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.h +++ b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.h @@ -27,6 +27,7 @@ - (void)presentPedestrianToastAlert:(BOOL)isFirstLaunch; - (void)presentIncorrectFeauturePositionAlert; - (void)presentInternalErrorAlert; +- (void)presentNotEnoughSpaceAlert; - (void)presentInvalidUserNameOrPasswordAlert; - (void)presentDisableAutoDownloadAlertWithOkBlock:(nonnull TMWMVoidBlock)okBlock; - (void)presentDownloaderNoConnectionAlertWithOkBlock:(nonnull TMWMVoidBlock)okBlock cancelBlock:(nonnull TMWMVoidBlock)cancelBlock; diff --git a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm index 7267843781..9d9178768b 100644 --- a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm +++ b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm @@ -89,6 +89,11 @@ static NSString * const kAlertControllerNibIdentifier = @"MWMAlertViewController [self displayAlert:[MWMAlert internalErrorAlert]]; } +- (void)presentNotEnoughSpaceAlert +{ + [self displayAlert:[MWMAlert notEnoughSpaceAlert]]; +} + - (void)presentInvalidUserNameOrPasswordAlert { [self displayAlert:[MWMAlert invalidUserNameOrPasswordAlert]]; diff --git a/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.h b/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.h index 7c2ceadfec..40a5c6bd83 100644 --- a/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.h +++ b/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.h @@ -24,6 +24,7 @@ + (MWMAlert *)pedestrianToastShareAlert:(BOOL)isFirstLaunch; + (MWMAlert *)incorrectFeauturePositionAlert; + (MWMAlert *)internalErrorAlert; ++ (MWMAlert *)notEnoughSpaceAlert; + (MWMAlert *)invalidUserNameOrPasswordAlert; + (MWMAlert *)point2PointAlertWithOkBlock:(TMWMVoidBlock)okBlock needToRebuild:(BOOL)needToRebuild; + (MWMAlert *)disableAutoDownloadAlertWithOkBlock:(TMWMVoidBlock)okBlock; diff --git a/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm b/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm index a601942e51..52916d6628 100644 --- a/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm +++ b/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm @@ -122,6 +122,11 @@ return [MWMDefaultAlert internalErrorAlert]; } ++ (MWMAlert *)notEnoughSpaceAlert +{ + return [MWMDefaultAlert notEnoughSpaceAlert]; +} + + (MWMAlert *)invalidUserNameOrPasswordAlert { return [MWMDefaultAlert invalidUserNameOrPasswordAlert]; diff --git a/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.h b/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.h index 45bf864479..811239d52c 100644 --- a/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.h +++ b/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.h @@ -9,6 +9,7 @@ + (instancetype)internalRoutingErrorAlert; + (instancetype)incorrectFeauturePositionAlert; + (instancetype)internalErrorAlert; ++ (instancetype)notEnoughSpaceAlert; + (instancetype)invalidUserNameOrPasswordAlert; + (instancetype)noCurrentPositionAlert; + (instancetype)pointsInDifferentMWMAlert; diff --git a/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm b/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm index 0f57a6dc96..47cbf198b9 100644 --- a/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm +++ b/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm @@ -168,6 +168,18 @@ static NSString * const kDefaultAlertNibName = @"MWMDefaultAlert"; rightButtonAction:nil]; } ++ (instancetype)notEnoughSpaceAlert +{ + kStatisticsEvent = @"Not Enough Space Alert"; + MWMDefaultAlert * alert = [self defaultAlertWithTitle:@"migration_download_error_dialog" + message:@"migration_no_space_message" + rightButtonTitle:@"ok" + leftButtonTitle:nil + rightButtonAction:nil]; + [alert setNeedsCloseAlertAfterEnterBackground]; + return alert; +} + + (instancetype)invalidUserNameOrPasswordAlert { kStatisticsEvent = @"Invalid User Name or Password Alert";