forked from organicmaps/organicmaps
[ios] Notify drape engine that app started by deep link.
This commit is contained in:
parent
af83a489b9
commit
c98b545f22
3 changed files with 9 additions and 7 deletions
|
@ -20,11 +20,12 @@ namespace dp
|
|||
CGRect lastViewSize;
|
||||
}
|
||||
|
||||
@property (nonatomic) MWMMapWidgets * widgetsManager;
|
||||
@property(nonatomic) MWMMapWidgets * widgetsManager;
|
||||
|
||||
@property (nonatomic, readonly) BOOL drapeEngineCreated;
|
||||
@property(nonatomic, readonly) BOOL drapeEngineCreated;
|
||||
@property(nonatomic) BOOL isLaunchByDeepLink;
|
||||
|
||||
@property (nonatomic, readonly) m2::PointU pixelSize;
|
||||
@property(nonatomic, readonly) m2::PointU pixelSize;
|
||||
|
||||
- (void)deallocateNative;
|
||||
- (CGPoint)viewPoint2GlobalPoint:(CGPoint)pt;
|
||||
|
|
|
@ -85,9 +85,8 @@ double getExactDPI(double contentScaleFactor)
|
|||
p.m_surfaceHeight = height;
|
||||
p.m_visualScale = dp::VisualScale(getExactDPI(self.contentScaleFactor));
|
||||
p.m_hints.m_isFirstLaunch = [Alohalytics isFirstSession];
|
||||
// TODO: Add initialization.
|
||||
// p.m_hints.m_isLaunchByDeepLink = ...;
|
||||
|
||||
p.m_hints.m_isLaunchByDeepLink = self.isLaunchByDeepLink;
|
||||
|
||||
[self.widgetsManager setupWidgets:p];
|
||||
GetFramework().CreateDrapeEngine(make_ref(m_factory), move(p));
|
||||
|
||||
|
|
|
@ -185,9 +185,11 @@ using namespace osm_auth_ios;
|
|||
return ((EAGLView *)self.mapViewController.view).drapeEngineCreated;
|
||||
}
|
||||
|
||||
- (BOOL)hasApiURL { return m_geoURL || m_mwmURL || m_fileURL; }
|
||||
- (BOOL)hasApiURL { return m_geoURL || m_mwmURL; }
|
||||
- (void)handleURLs
|
||||
{
|
||||
static_cast<EAGLView *>(self.mapViewController.view).isLaunchByDeepLink = self.hasApiURL;
|
||||
|
||||
if (!self.isDrapeEngineCreated)
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
|
Loading…
Add table
Reference in a new issue