mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 21:13:55 +00:00
Disable 3D setting for CarPlay mode (iOS)
Signed-off-by: matheusgomesms <matheusgomesms@noreply.codeberg.org>
This commit is contained in:
committed by
Matheus Gomes
parent
38fc18b6e6
commit
10398acedb
@@ -59,6 +59,7 @@ NS_SWIFT_NAME(FrameworkHelper)
|
||||
+ (void)updatePlacePageData;
|
||||
+ (void)updateAfterDeleteBookmark;
|
||||
+ (int)currentZoomLevel;
|
||||
+ (void)setCarScreenMode:(BOOL)enabled;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -241,4 +241,8 @@
|
||||
return [[ElevationProfileData alloc] initWithElevationInfo:GetFramework().GetTrackRecordingElevationInfo()];
|
||||
}
|
||||
|
||||
+ (void)setCarScreenMode:(BOOL)enabled {
|
||||
GetFramework().SetCarScreenMode(enabled);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -62,6 +62,8 @@ final class CarPlayService: NSObject {
|
||||
toWindow: window,
|
||||
isCarplayActivated: true
|
||||
)
|
||||
|
||||
FrameworkHelper.setCarScreenMode(true)
|
||||
}
|
||||
|
||||
private var savedInterfaceController: CPInterfaceController?
|
||||
@@ -126,6 +128,7 @@ final class CarPlayService: NSObject {
|
||||
isCarplayActivated: false
|
||||
)
|
||||
}
|
||||
FrameworkHelper.setCarScreenMode(false)
|
||||
}
|
||||
|
||||
@objc func destroy() {
|
||||
|
||||
Reference in New Issue
Block a user