summaryrefslogtreecommitdiff
path: root/Example Apps/Example Swift
diff options
context:
space:
mode:
authorFrank Elias <francois.elias@livio.io>2020-11-20 17:08:30 -0500
committerFrank Elias <francois.elias@livio.io>2020-11-20 17:08:30 -0500
commit03f7c2055442afbe7c00fca1116b75df04abc713 (patch)
tree5f9ba27ff1580f747e918a043306adace41e15ab /Example Apps/Example Swift
parent9de3fee5b73a8ea7b66fb10f18a24d75bc98f2a6 (diff)
downloadsdl_ios-03f7c2055442afbe7c00fca1116b75df04abc713.tar.gz
Diffstat (limited to 'Example Apps/Example Swift')
-rw-r--r--Example Apps/Example Swift/ProxyManager.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/Example Apps/Example Swift/ProxyManager.swift b/Example Apps/Example Swift/ProxyManager.swift
index 1e68f9f32..8a53e7c76 100644
--- a/Example Apps/Example Swift/ProxyManager.swift
+++ b/Example Apps/Example Swift/ProxyManager.swift
@@ -165,10 +165,6 @@ extension ProxyManager: SDLManagerDelegate {
// This is our first time in a non-NONE state
firstHMILevelState = newLevel
- // Send static menu items and soft buttons
- createMenuAndGlobalVoiceCommands()
- sdlManager.screenManager.softButtonObjects = buttonManager.allScreenSoftButtons()
-
// Subscribe to vehicle data.
vehicleDataManager.subscribeToVehicleOdometer()
@@ -252,6 +248,10 @@ private extension ProxyManager {
/// Set the template and create the UI
func showInitialData() {
+ // Send static menu items and soft buttons
+ createMenuAndGlobalVoiceCommands()
+ sdlManager.screenManager.softButtonObjects = buttonManager.allScreenSoftButtons()
+
guard sdlManager.hmiLevel == .full else { return }
sdlManager.screenManager.changeLayout(SDLTemplateConfiguration(predefinedLayout: .nonMedia), withCompletionHandler: nil)