[MAPSME-3174] [ios] Fixed search manager states handling.

This commit is contained in:
Ilya Grechuhin 2016-12-08 15:29:20 +03:00
parent b2079b6e31
commit e95c49e865

View file

@ -279,7 +279,6 @@ typedef NS_ENUM(NSUInteger, MWMSearchManagerActionBarState) {
- (void)changeToDefaultState
{
[self updateTopController];
[self.navigationController popToRootViewControllerAnimated:NO];
self.actionBarState = MWMSearchManagerActionBarStateTabBar;
@ -294,7 +293,6 @@ typedef NS_ENUM(NSUInteger, MWMSearchManagerActionBarState) {
- (void)changeToTableSearchState
{
[self updateTopController];
[self.navigationController popToRootViewControllerAnimated:NO];
self.actionBarState = MWMSearchManagerActionBarStateHidden;
@ -311,7 +309,6 @@ typedef NS_ENUM(NSUInteger, MWMSearchManagerActionBarState) {
- (void)changeToMapSearchState
{
[self updateTopController];
[self.navigationController popToRootViewControllerAnimated:NO];
self.actionBarState = MWMSearchManagerActionBarStateModeFilter;
@ -452,6 +449,7 @@ typedef NS_ENUM(NSUInteger, MWMSearchManagerActionBarState) {
kSearchStateKey : @(state)
}];
_state = state;
[self updateTopController];
switch (state)
{
case MWMSearchManagerStateHidden: