Merge pull request #4141 from VladiMihaylenko/vm-master

[api] Fixed bugs.
This commit is contained in:
Илья Гречухин 2016-08-24 12:24:03 +04:00 committed by GitHub
commit 165814ca6b
3 changed files with 10 additions and 0 deletions

View file

@ -129,6 +129,9 @@ BOOL gIsFirstMyPositionMode = YES;
if (!switchFullScreenMode)
return;
if ([MapsAppDelegate theApp].hasApiURL)
return;
MWMMapViewControlsManager * cm = self.controlsManager;
if (cm.searchHidden && cm.navigationState == MWMNavigationDashboardStateHidden)
self.controlsManager.hidden = !self.controlsManager.hidden;

View file

@ -32,6 +32,8 @@ typedef NS_ENUM(NSUInteger, MWMRoutingPlaneMode) {
+ (MapsAppDelegate *)theApp;
- (BOOL)hasApiURL;
+ (void)initPushNotificationsWithLaunchOptions:(NSDictionary *)launchOptions;
- (void)enableStandby;

View file

@ -233,6 +233,11 @@ using namespace osm_auth_ios;
return ((EAGLView *)self.mapViewController.view).drapeEngineCreated;
}
- (BOOL)hasApiURL
{
return m_geoURL || m_mwmURL || m_fileURL;
}
- (void)handleURLs
{
if (!self.isDrapeEngineCreated)