forked from organicmaps/organicmaps
[ios] Fixed search download progress stuck.
This commit is contained in:
parent
edd483e4e8
commit
1195f9f0a2
2 changed files with 2 additions and 3 deletions
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue