Skip to content

Commit acffcf2

Browse files
committed
PR feedback changes
1 parent 8432443 commit acffcf2

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

android/sdl_android/src/main/java/com/smartdevicelink/managers/SdlManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ public void run() {
100100
}
101101
};
102102

103-
public SdlManager(){
104-
DebugTool.logWarning(TAG, "If this SdlManager was created without using SdlManager.Builder, most of its members are not initialized");
103+
public SdlManager() {
104+
DebugTool.logWarning(TAG, "SdlManager must be created with SdlManager.Builder");
105105
}
106106

107107
/**

base/src/main/java/com/smartdevicelink/managers/BaseSdlManager.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,17 @@ public void onResponse(int correlationId, RPCResponse response) {
220220
if (lcu.getShortAppName() != null) {
221221
shortAppName = lcu.getShortAppName();
222222
}
223+
224+
if (lcu.getTtsName() != null) {
225+
ttsChunks = lcu.getTtsName();
226+
}
227+
228+
if (lcu.getVoiceRecognitionCommandNames() != null) {
229+
vrSynonyms = lcu.getVoiceRecognitionCommandNames();
230+
}
231+
} else {
232+
DebugTool.logError(TAG, "Change Registration onError: " + response.getResultCode() + " | Info: " + response.getInfo());
233+
retryChangeRegistration();
223234
}
224235
}
225236
});

0 commit comments

Comments
 (0)