From 92ccd2731f0c2e15e654d7161014e1317ac61dcd Mon Sep 17 00:00:00 2001 From: Igor Khmurets Date: Tue, 2 Sep 2014 12:54:53 +0300 Subject: [PATCH] [ios] 'Buy Pro' menu item moved to top --- iphone/Maps/Classes/BottomMenu.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iphone/Maps/Classes/BottomMenu.mm b/iphone/Maps/Classes/BottomMenu.mm index 36cf9a3e68..d26c2d8188 100644 --- a/iphone/Maps/Classes/BottomMenu.mm +++ b/iphone/Maps/Classes/BottomMenu.mm @@ -40,6 +40,9 @@ { NSMutableArray * items = [[NSMutableArray alloc] init]; + if (!GetPlatform().IsPro()) + [items addObject:@{@"Id" : @"MWMPro", @"Title" : NSLocalizedString(@"become_a_pro", nil), @"Icon" : @"MWMProIcon", @"Color" : @"15c783"}]; + bool adsEnabled = true; (void)Settings::Get("MenuLinksEnabled", adsEnabled); if (adsEnabled) @@ -49,14 +52,11 @@ [items addObjectsFromArray:serverItems]; } - if (!GetPlatform().IsPro()) - [items addObject:@{@"Id" : @"MWMPro", @"Title" : NSLocalizedString(@"become_a_pro", nil), @"Icon" : @"MWMProIcon", @"Color" : @"15c783"}]; - [items addObject:@{@"Id" : @"MoreApps", @"Title" : NSLocalizedString(@"more_apps_guides", nil), @"Icon" : @"IconMoreApps"}]; NSArray * standardItems = @[@{@"Id" : @"Maps", @"Title" : NSLocalizedString(@"download_maps", nil), @"Icon" : @"IconMap"}, - @{@"Id" : @"Settings", @"Title" : NSLocalizedString(@"settings_and_more", nil), @"Icon" : @"IconSettings"}, - @{@"Id" : @"Share", @"Title" : NSLocalizedString(@"share_my_location", nil), @"Icon" : @"IconShare"}]; + @{@"Id" : @"Settings", @"Title" : NSLocalizedString(@"settings_and_more", nil), @"Icon" : @"IconSettings"}, + @{@"Id" : @"Share", @"Title" : NSLocalizedString(@"share_my_location", nil), @"Icon" : @"IconShare"}]; [items addObjectsFromArray:standardItems]; return items;