We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a6a45e commit a7c391dCopy full SHA for a7c391d
1 file changed
base/src/main/java/com/smartdevicelink/managers/screen/menu/BaseVoiceCommandManager.java
@@ -145,15 +145,14 @@ public void setVoiceCommands(List<VoiceCommand> voiceCommands) {
145
146
List<VoiceCommand> validatedVoiceCommands = removeEmptyVoiceCommands(this.voiceCommands);
147
148
- if (validatedVoiceCommands.size() == 0) {
+ if (validatedVoiceCommands.size() == 0 && voiceCommands.size() > 0) {
149
DebugTool.logError(TAG, "New voice commands are invalid, skipping...");
150
return;
151
}
152
153
if (!isVoiceCommandsUnique(validatedVoiceCommands)) {
154
DebugTool.logError(TAG, "Not all voice command strings are unique across all voice commands. Voice commands will not be set.");
155
156
-
157
158
159
updateIdsOnVoiceCommands(this.voiceCommands);
0 commit comments