[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:
Kiryl Kaveryn
2025-05-29 20:16:13 +04:00
committed by Konstantin Pastbin
parent 09c704ee8f
commit 6d093a45cf
3 changed files with 4 additions and 10 deletions

View File

@@ -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 {

View File

@@ -29,8 +29,6 @@ typedef NS_ENUM(NSUInteger, MWMNavigationInfoViewState) {
- (void)onNavigationInfoUpdated:(MWMNavigationDashboardEntity *)info;
- (void)setMapSearch;
- (void)updateToastView;
@end

View File

@@ -100,9 +100,6 @@ BOOL defaultOrientation(CGSize const &size) {
@implementation MWMNavigationInfoView
- (void)setMapSearch {
[self setSearchState:NavigationSearchState::MinimizedSearch animated:YES];
}
- (void)updateToastView {
// -S-F-L -> Start
// -S-F+L -> Finish