[CarPlay] Replaced nativeScale to scale for the visual scale update

This commit is contained in:
Zoia Pribytkova 2019-08-16 16:17:35 +03:00 committed by Aleksandr Zatsepin
parent 82d1427ddc
commit f0f3593a07

View file

@ -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];