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
diff options
context:
space:
mode:
authorv.mikhaylenko <v.mikhaylenko@corp.mail.ru>2015-08-10 17:14:09 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:00:32 +0300
commit5fa3fa82b98b325338ca08e95ddc040ba758e23c (patch)
treec257392baedae64ec93e998f624c1483b5b1a8e9 /iphone/Maps/Classes/MWMPlacePage.mm
parent46ce528e789c8155fabdd74ab713e311c853f56c (diff)
[ios] Added back API button to place page.
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePage.mm')
-rw-r--r--iphone/Maps/Classes/MWMPlacePage.mm11
1 files changed, 5 insertions, 6 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePage.mm b/iphone/Maps/Classes/MWMPlacePage.mm
index 97aa66e9e3..2581ff5ae4 100644
--- a/iphone/Maps/Classes/MWMPlacePage.mm
+++ b/iphone/Maps/Classes/MWMPlacePage.mm
@@ -45,12 +45,7 @@ extern NSString * const kAlohalyticsTapEventKey;
{
MWMPlacePageEntity * entity = self.manager.entity;
[self.basePlacePageView configureWithEntity:entity];
-
- MWMPlacePageEntityType type = entity.type;
- self.actionBar.isBookmark = type == MWMPlacePageEntityTypeBookmark;
-
- BOOL const isMyPosition = type == MWMPlacePageEntityTypeMyPosition;
- [self.actionBar configureForMyPosition:isMyPosition];
+ [self.actionBar configureWithPlacePage:self];
}
- (void)show
@@ -66,6 +61,10 @@ extern NSString * const kAlohalyticsTapEventKey;
}
#pragma mark - Actions
+- (void)apiBack
+{
+ [self.manager apiBack];
+}
- (void)addBookmark
{