forked from organicmaps/organicmaps-tmp
[ios][promo] fixed transition to booking from 'More on booking' and placeholder resource name for booking popup
This commit is contained in:
parent
dd2026eab1
commit
c69558e127
3 changed files with 7 additions and 6 deletions
|
@ -565,6 +565,7 @@ void RegisterEventIfPossible(eye::MapObject::Event::Type const type, place_page:
|
|||
logSponsoredEvent(data, kStatPlacePageHotelMore);
|
||||
[UIApplication.sharedApplication openURL:data.sponsoredMoreURL
|
||||
options:@{} completionHandler:nil];
|
||||
[MWMEye transitionToBookingWithPos:CGPointMake(data.mercator.x, data.mercator.y)];
|
||||
}
|
||||
|
||||
- (void)openReviewUrl
|
||||
|
|
|
@ -23,11 +23,11 @@ class PromoAfterBookingViewController: UIViewController {
|
|||
}
|
||||
|
||||
private func setCityImage(_ imageUrl: String) {
|
||||
cityImageView.image = UIColor.isNightMode()
|
||||
? UIImage(named: "img_booking_popup_pholder_night")
|
||||
: UIImage(named: "img_booking_popup_pholder")
|
||||
if !imageUrl.isEmpty, let url = URL(string: imageUrl) {
|
||||
cityImageView.wi_setImage(with: url, transitionDuration: kDefaultAnimationDuration)
|
||||
cityImageView.image = UIColor.isNightMode()
|
||||
? UIImage(named: "img_booking_popup_pholder_dark")
|
||||
: UIImage(named: "img_booking_popup_pholder_light")
|
||||
if !imageUrl.isEmpty, let url = URL(string: imageUrl) {
|
||||
cityImageView.wi_setImage(with: url, transitionDuration: kDefaultAnimationDuration)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ void GetPromoCityGalleryImpl(std::string const & baseUrl, std::string const & id
|
|||
}
|
||||
catch (base::Json::Exception const & e)
|
||||
{
|
||||
LOG(LERROR, (e.Msg()));
|
||||
LOG(LERROR, (e.Msg(), httpResult));
|
||||
onError();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue