We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe702eb commit 0c0237bCopy full SHA for 0c0237b
1 file changed
base/src/main/java/com/smartdevicelink/managers/screen/menu/BaseVoiceCommandManager.java
@@ -126,7 +126,10 @@ public void setVoiceCommands(List<VoiceCommand> voiceCommands){
126
waitingOnHMIUpdate = false;
127
lastVoiceCommandId = voiceCommandIdMin;
128
updateIdsOnVoiceCommands(voiceCommands);
129
- this.oldVoiceCommands = new ArrayList<>(this.voiceCommands);
+ this.oldVoiceCommands = new ArrayList<>();
130
+ if (this.voiceCommands != null && !this.voiceCommands.isEmpty()) {
131
+ this.oldVoiceCommands.addAll(this.voiceCommands);
132
+ }
133
this.voiceCommands = new ArrayList<>(voiceCommands);
134
135
update();
0 commit comments