forked from organicmaps/organicmaps
[iOS] Fallback to old search in navigation
https://jira.mail.ru/browse/MAPSME-14174
This commit is contained in:
parent
ee133396e2
commit
419da3bf59
1 changed files with 6 additions and 2 deletions
|
@ -214,8 +214,13 @@ NSString *const kPP2BookmarkEditingSegue = @"PP2BookmarkEditing";
|
|||
[self hidePlacePage];
|
||||
|
||||
BOOL const isSearchResult = [MWMSearchManager manager].state == MWMSearchManagerStateResult;
|
||||
BOOL const isNavigationDashboardHidden = [MWMNavigationDashboardManager sharedManager].state == MWMNavigationDashboardStateHidden;
|
||||
if (isSearchResult) {
|
||||
[MWMSearchManager manager].state = MWMSearchManagerStateMapSearch;
|
||||
if (isNavigationDashboardHidden) {
|
||||
[MWMSearchManager manager].state = MWMSearchManagerStateMapSearch;
|
||||
} else {
|
||||
[MWMSearchManager manager].state = MWMSearchManagerStateHidden;
|
||||
}
|
||||
}
|
||||
|
||||
if (!switchFullScreenMode)
|
||||
|
@ -225,7 +230,6 @@ NSString *const kPP2BookmarkEditingSegue = @"PP2BookmarkEditing";
|
|||
return;
|
||||
|
||||
BOOL const isSearchHidden = [MWMSearchManager manager].state == MWMSearchManagerStateHidden;
|
||||
BOOL const isNavigationDashboardHidden = [MWMNavigationDashboardManager sharedManager].state == MWMNavigationDashboardStateHidden;
|
||||
if (isSearchHidden && isNavigationDashboardHidden) {
|
||||
self.controlsManager.hidden = !self.controlsManager.hidden;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue