@@ -103,8 +103,8 @@ - (void)start {
103
103
104
104
// set the app display layout to the non-media template
105
105
if ([self .templatesAvailable containsObject: SDLPredefinedLayoutNonMedia]) {
106
- SDLSetDisplayLayout *request = [[SDLSetDisplayLayout alloc ] initWithLayout : SDLPredefinedLayoutNonMedia];
107
- [self .manager sendRequest: request ];
106
+ SDLTemplateConfiguration *template = [[SDLTemplateConfiguration alloc ] initWithPredefinedLayout : SDLPredefinedLayoutNonMedia];
107
+ [self .manager.screenManager changeLayout: template withCompletionHandler: nil ];
108
108
} else {
109
109
// This head unit isn't supported
110
110
SDLLogE (@" The non-media template isn't supported. This app may not work properly" );
@@ -819,7 +819,7 @@ - (void)sendDefaultGlobalProperties {
819
819
820
820
NSString *promptString = [prompts componentsJoinedByString: @" ," ];
821
821
822
- SDLSetGlobalProperties *request = [[SDLSetGlobalProperties alloc ] initWithHelpText: promptString timeoutText: promptString vrHelpTitle: self .localization[@" app.name" ] vrHelp: [helpitems copy ] menuTitle: nil menuIcon: nil keyboardProperties: nil menuLayout: nil ];
822
+ SDLSetGlobalProperties *request = [[SDLSetGlobalProperties alloc ] initWithUserLocation: nil helpPrompt: [SDLTTSChunk textChunksFromString: promptString] timeoutPrompt: [SDLTTSChunk textChunksFromString: promptString] vrHelpTitle: self .localization[@" app.name" ] vrHelp: [helpitems copy ] menuTitle: nil menuIcon: nil keyboardProperties: nil menuLayout: nil ];
823
823
[self .manager sendRequest: request];
824
824
}
825
825
@@ -861,7 +861,7 @@ - (void)sendListGlobalProperties:(MWInfoType)infoType withPrevious:(BOOL)withPre
861
861
862
862
NSString *promptString = [prompts componentsJoinedByString: @" ," ];
863
863
864
- SDLSetGlobalProperties *request = [[SDLSetGlobalProperties alloc ] initWithHelpText: promptString timeoutText: promptString vrHelpTitle: self .localization[@" app.name" ] vrHelp: [items copy ] menuTitle: nil menuIcon: nil keyboardProperties: nil menuLayout: nil ];
864
+ SDLSetGlobalProperties *request = [[SDLSetGlobalProperties alloc ] initWithUserLocation: nil helpPrompt: [SDLTTSChunk textChunksFromString: promptString] timeoutPrompt: [SDLTTSChunk textChunksFromString: promptString] vrHelpTitle: self .localization[@" app.name" ] vrHelp: [items copy ] menuTitle: nil menuIcon: nil keyboardProperties: nil menuLayout: nil ];
865
865
[self .manager sendRequest: request];
866
866
}
867
867
0 commit comments