diff --git a/base/buffer_vector.hpp b/base/buffer_vector.hpp index 2da0a75347..d9d664041c 100644 --- a/base/buffer_vector.hpp +++ b/base/buffer_vector.hpp @@ -224,10 +224,7 @@ public: T const * data() const { if (IsDynamic()) - { - ASSERT(!m_dynamic.empty(), ()); - return &m_dynamic[0]; - } + return m_dynamic.data(); return &m_static[0]; } @@ -235,10 +232,7 @@ public: T * data() { if (IsDynamic()) - { - ASSERT(!m_dynamic.empty(), ()); - return &m_dynamic[0]; - } + return m_dynamic.data(); return &m_static[0]; } diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm index 39150d06e3..b13f7a5677 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm @@ -120,7 +120,7 @@ NSArray * imagesWithName(NSString * name) CGFloat const leftOffset = self.hidden ? -self.view.width : self.leftBound + kViewControlsOffsetToBounds; UIView * ov = self.view.superview; - [ov layoutIfNeeded]; + [ov setNeedsLayout]; self.topOffset.constant = topOffset; self.leftOffset.constant = leftOffset; [UIView animateWithDuration:kDefaultAnimationDuration diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 00e63b8f38..30b0ea2d75 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -747,7 +747,10 @@ using namespace osm_auth_ios; m_sourceApplication = sourceApplication; if ([self checkLaunchURL:url]) + { + [self handleURLs]; return YES; + } return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url diff --git a/iphone/Maps/Core/Search/MWMSearch.mm b/iphone/Maps/Core/Search/MWMSearch.mm index 5507940f03..0f55f5f1f2 100644 --- a/iphone/Maps/Core/Search/MWMSearch.mm +++ b/iphone/Maps/Core/Search/MWMSearch.mm @@ -88,6 +88,11 @@ using TObservers = NSHashTable<__kindof TObserver>; return; if (timestamp != self.lastSearchStamp) return; + + self->m_everywhereResults = results; + self->m_isLocalAdsCustomer = isLocalAdsCustomer; + self.suggestionsCount = results.GetSuggestsCount(); + if (results.IsEndMarker()) { [self checkIsHotelResults:results]; @@ -106,9 +111,6 @@ using TObservers = NSHashTable<__kindof TObserver>; } else { - self->m_everywhereResults = results; - self->m_isLocalAdsCustomer = isLocalAdsCustomer; - self.suggestionsCount = results.GetSuggestsCount(); [self updateItemsIndexWithBannerReload:NO]; [self onSearchResultsUpdated]; } diff --git a/iphone/Maps/UI/Search/TableView/MWMSearchTableViewController.mm b/iphone/Maps/UI/Search/TableView/MWMSearchTableViewController.mm index 849b5f2b87..8598a3de81 100644 --- a/iphone/Maps/UI/Search/TableView/MWMSearchTableViewController.mm +++ b/iphone/Maps/UI/Search/TableView/MWMSearchTableViewController.mm @@ -148,6 +148,7 @@ BOOL const noResults = [MWMSearch resultsCount] == 0; self.tableView.hidden = noResults; [(MWMSearchTableView *)self.view hideNoResultsView:!noResults]; + [self reloadData]; } - (void)onSearchResultsUpdated diff --git a/map/framework.cpp b/map/framework.cpp index 15caf2ccab..054f04c689 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1748,7 +1748,8 @@ void Framework::FillSearchResultsMarks(search::Results::ConstIter begin, SearchMarkPoint * mark = static_cast(guard.m_controller.CreateUserMark(r.GetFeatureCenter())); ASSERT_EQUAL(mark->GetMarkType(), UserMark::Type::SEARCH, ()); - if (r.GetResultType() == search::Result::RESULT_FEATURE) + auto const isFeature = r.GetResultType() == search::Result::RESULT_FEATURE; + if (isFeature) mark->SetFoundFeature(r.GetFeatureID()); mark->SetMatchedName(r.GetString()); @@ -1756,7 +1757,7 @@ void Framework::FillSearchResultsMarks(search::Results::ConstIter begin, mark->SetCustomSymbol("search-booking"); else if (r.m_metadata.m_isSponsoredBank) mark->SetCustomSymbol("search-tinkoff"); - else if (m_localAdsManager.Contains(r.GetFeatureID())) + else if (isFeature && m_localAdsManager.Contains(r.GetFeatureID())) mark->SetCustomSymbol("search-adv"); } } diff --git a/xcode/common.xcconfig b/xcode/common.xcconfig index 2dee126d88..5403353cd2 100644 --- a/xcode/common.xcconfig +++ b/xcode/common.xcconfig @@ -1,4 +1,4 @@ -CURRENT_PROJECT_VERSION = 7.3.3 +CURRENT_PROJECT_VERSION = 7.3.4 // Paths OMIM_ROOT = $(PROJECT_DIR)/../..