File tree Expand file tree Collapse file tree
base/src/main/java/com/smartdevicelink/managers/screen/menu Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656
5757abstract class BaseVoiceCommandManager extends BaseSubManager {
5858
59- List <VoiceCommand > voiceCommands ;
60- List <VoiceCommand > oldVoiceCommands ;
59+ List <VoiceCommand > voiceCommands , oldVoiceCommands ;
6160
6261 List <AddCommand > inProgressUpdate ;
6362
@@ -127,7 +126,10 @@ public void setVoiceCommands(List<VoiceCommand> voiceCommands){
127126 waitingOnHMIUpdate = false ;
128127 lastVoiceCommandId = voiceCommandIdMin ;
129128 updateIdsOnVoiceCommands (voiceCommands );
130- oldVoiceCommands = new ArrayList <>(voiceCommands );
129+ this .oldVoiceCommands = new ArrayList <>();
130+ if (this .voiceCommands != null && !this .voiceCommands .isEmpty ()) {
131+ this .oldVoiceCommands .addAll (this .voiceCommands );
132+ }
131133 this .voiceCommands = new ArrayList <>(voiceCommands );
132134
133135 update ();
You can’t perform that action at this time.
0 commit comments