forked from organicmaps/organicmaps
[CarPlay] Replaced nativeScale to scale for the visual scale update
This commit is contained in:
parent
82d1427ddc
commit
f0f3593a07
1 changed files with 2 additions and 2 deletions
|
@ -859,8 +859,8 @@ didDisconnectCarInterfaceController:(CPInterfaceController *)interfaceController
|
|||
- (void)updateAppearanceFromWindow:(UIWindow *)sourceWindow
|
||||
toWindow:(UIWindow *)destinationWindow
|
||||
isCarplayActivated:(BOOL)isCarplayActivated {
|
||||
CGFloat sourceContentScale = sourceWindow.screen.nativeScale;
|
||||
CGFloat destinationContentScale = destinationWindow.screen.nativeScale;
|
||||
CGFloat sourceContentScale = sourceWindow.screen.scale;
|
||||
CGFloat destinationContentScale = destinationWindow.screen.scale;
|
||||
if (ABS(sourceContentScale - destinationContentScale) > 0.1) {
|
||||
if (isCarplayActivated) {
|
||||
[self updateVisualScale:destinationContentScale];
|
||||
|
|
Loading…
Add table
Reference in a new issue