mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[ios] Stop unwanted map style changes when switching away from the app during route planing
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
fd63e77396
commit
ae85b79c33
@@ -13,7 +13,7 @@ final class ThemeManager: NSObject {
|
||||
updateSystemUserInterfaceStyle(theme)
|
||||
|
||||
let actualTheme: MWMTheme = { theme in
|
||||
let isVehicleRouting = MWMRouter.isRoutingActive() && (MWMRouter.type() == .vehicle)
|
||||
let isVehicleRouting = MWMRouter.isRoutingActive() && (MWMRouter.type() == .vehicle) && MWMRouter.hasSavedRoute()
|
||||
switch theme {
|
||||
case .day: fallthrough
|
||||
case .vehicleDay: return isVehicleRouting ? .vehicleDay : .day
|
||||
|
||||
Reference in New Issue
Block a user