diff options
author | Frank Elias <francois.elias@livio.io> | 2020-11-19 15:15:15 -0500 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2020-11-19 15:15:15 -0500 |
commit | 9de3fee5b73a8ea7b66fb10f18a24d75bc98f2a6 (patch) | |
tree | f148949c0ff7e07e8b8661238ec65cb91be2f938 /Example Apps | |
parent | 1c2a043b620ff16e7ca84bd7e51f325bf10e8603 (diff) | |
download | sdl_ios-9de3fee5b73a8ea7b66fb10f18a24d75bc98f2a6.tar.gz |
Keep the same template on HMI level changes
Diffstat (limited to 'Example Apps')
-rw-r--r-- | Example Apps/Example ObjC/ProxyManager.m | 4 | ||||
-rw-r--r-- | Example Apps/Example Swift/ProxyManager.swift | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Example Apps/Example ObjC/ProxyManager.m b/Example Apps/Example ObjC/ProxyManager.m index ed2c057e3..d93fb8565 100644 --- a/Example Apps/Example ObjC/ProxyManager.m +++ b/Example Apps/Example ObjC/ProxyManager.m @@ -249,11 +249,13 @@ NS_ASSUME_NONNULL_BEGIN // Subscribe to vehicle data. [self.vehicleDataManager subscribeToVehicleOdometer]; + + //Handle initial launch + [self sdlex_showInitialData]; } if ([newLevel isEqualToEnum:SDLHMILevelFull]) { // The SDL app is in the foreground. Always try to show the initial state to guard against some possible weird states. Duplicates will be ignored by Core. - [self sdlex_showInitialData]; [self.subscribeButtonManager subscribeToAllPresetButtons]; } else if ([newLevel isEqualToEnum:SDLHMILevelLimited]) { // An active NAV or MEDIA SDL app is in the background diff --git a/Example Apps/Example Swift/ProxyManager.swift b/Example Apps/Example Swift/ProxyManager.swift index bce2617ad..1e68f9f32 100644 --- a/Example Apps/Example Swift/ProxyManager.swift +++ b/Example Apps/Example Swift/ProxyManager.swift @@ -171,12 +171,14 @@ extension ProxyManager: SDLManagerDelegate { // Subscribe to vehicle data. vehicleDataManager.subscribeToVehicleOdometer() + + //Handle initial launch + showInitialData() } switch newLevel { case .full: // The SDL app is in the foreground. Always try to show the initial state to guard against some possible weird states. Duplicates will be ignored by Core. - showInitialData() subscribeButtonManager.subscribeToPresetButtons() case .limited: break // An active NAV or MEDIA SDL app is in the background case .background: break // The SDL app is not in the foreground |