mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 05:17:56 +00:00
[ios] fix issue with the initial search indication while building the route
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
09c704ee8f
commit
6d093a45cf
@@ -145,6 +145,8 @@ NSString *const kNavigationControlViewXibName = @"NavigationControlView";
|
||||
|
||||
- (void)statePrepare {
|
||||
self.navigationInfoView.state = MWMNavigationInfoViewStatePrepare;
|
||||
if (self.searchManager.isSearching)
|
||||
[self.navigationInfoView setSearchState:NavigationSearchState::MinimizedSearch animated:YES];
|
||||
auto routePreview = self.routePreview;
|
||||
[routePreview addToView:self.ownerView];
|
||||
[routePreview statePrepare];
|
||||
@@ -252,7 +254,8 @@ NSString *const kNavigationControlViewXibName = @"NavigationControlView";
|
||||
break;
|
||||
case SearchOnMapStateHidden:
|
||||
case SearchOnMapStateSearching:
|
||||
[self setMapSearch];
|
||||
[self.navigationInfoView setSearchState:NavigationSearchState::MinimizedSearch animated:YES];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -349,10 +352,6 @@ NSString *const kNavigationControlViewXibName = @"NavigationControlView";
|
||||
return _entity;
|
||||
}
|
||||
|
||||
- (void)setMapSearch {
|
||||
[_navigationInfoView setMapSearch];
|
||||
}
|
||||
|
||||
#pragma mark - MWMRoutePreviewDelegate
|
||||
|
||||
- (void)routePreviewDidPressDrivingOptions:(MWMRoutePreview *)routePreview {
|
||||
|
||||
Reference in New Issue
Block a user