Skip to content

Commit fe702eb

Browse files
Fix an issue in setVoiceCommands()
1 parent 9b43ce1 commit fe702eb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

base/src/main/java/com/smartdevicelink/managers/screen/menu/BaseVoiceCommandManager.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656

5757
abstract 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,7 @@ 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<>(this.voiceCommands);
131130
this.voiceCommands = new ArrayList<>(voiceCommands);
132131

133132
update();

0 commit comments

Comments
 (0)