mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-03 11:23:48 +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 {
|
||||
|
||||
@@ -29,8 +29,6 @@ typedef NS_ENUM(NSUInteger, MWMNavigationInfoViewState) {
|
||||
|
||||
- (void)onNavigationInfoUpdated:(MWMNavigationDashboardEntity *)info;
|
||||
|
||||
- (void)setMapSearch;
|
||||
|
||||
- (void)updateToastView;
|
||||
|
||||
@end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user