[ios] Fixed search download progress stuck.

This commit is contained in:
Ilya Grechuhin 2015-07-16 12:30:02 +03:00 committed by Alex Zolotarev
parent edd483e4e8
commit 1195f9f0a2
2 changed files with 2 additions and 3 deletions

View file

@ -1073,8 +1073,6 @@ typedef NS_OPTIONS(NSUInteger, MapInfoView)
- (void)countryStatusChangedAtPosition:(int)position inGroup:(ActiveMapsLayout::TGroup const &)group
{
if (self.searchView.state != SearchViewStateFullscreen)
return;
TStatus const status = GetFramework().GetCountryTree().GetActiveMapLayout().GetCountryStatus(group, position);
if (status == TStatus::EDownloadFailed)
[self.searchView downloadFailed];

View file

@ -166,7 +166,8 @@ static BOOL keyboardLoaded = NO;
CGFloat const textFieldBackgroundWidth = cancelButtonMinX - self.searchBar.fieldBackgroundView.minX - 8;
CGFloat const textFieldWidth = textFieldBackgroundWidth - 60.;
LocationManager const * const locationManager = [MapsAppDelegate theApp].m_locationManager;
[self hideDownloadMapRequest];
LocationManager * locationManager = [MapsAppDelegate theApp].m_locationManager;
if (state == SearchViewStateFullscreen)
{
[locationManager start:self];