summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2020-11-13 13:57:01 -0500
committerJoel Fischer <joeljfischer@gmail.com>2020-11-13 13:57:01 -0500
commit154d8a467f464abad8ea2af0c10f2e6dfd4aed37 (patch)
tree2be55c03a13d6279435699a50bf545cbb99aa674
parent26d42b0ce9439e72e1b99eda0af8ecb062786b47 (diff)
downloadsdl_ios-154d8a467f464abad8ea2af0c10f2e6dfd4aed37.tar.gz
Fixes for renaming stuff
-rw-r--r--SmartDeviceLink/private/SDLVoiceCommandManager.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/SmartDeviceLink/private/SDLVoiceCommandManager.m b/SmartDeviceLink/private/SDLVoiceCommandManager.m
index 4900acfad..d068813a2 100644
--- a/SmartDeviceLink/private/SDLVoiceCommandManager.m
+++ b/SmartDeviceLink/private/SDLVoiceCommandManager.m
@@ -118,7 +118,7 @@ UInt32 const VoiceCommandIdMin = 1900000000;
// Create the operation, cancel previous ones and set this one
__weak typeof(self) weakSelf = self;
- SDLVoiceCommandUpdateOperation *updateOperation = [[SDLVoiceCommandUpdateOperation alloc] initWithConnectionManager:self.connectionManager newVoiceCommands:voiceCommands oldVoiceCommands:_currentVoiceCommands updateCompletionHandler:^(NSArray<SDLVoiceCommand *> *newCurrentVoiceCommands, NSError * _Nullable error) {
+ SDLVoiceCommandUpdateOperation *updateOperation = [[SDLVoiceCommandUpdateOperation alloc] initWithConnectionManager:self.connectionManager pendingVoiceCommands:voiceCommands oldVoiceCommands:_currentVoiceCommands updateCompletionHandler:^(NSArray<SDLVoiceCommand *> *newCurrentVoiceCommands, NSError * _Nullable error) {
weakSelf.currentVoiceCommands = newCurrentVoiceCommands;
[weakSelf sdl_updatePendingOperationsWithNewCurrentVoiceCommands:newCurrentVoiceCommands];
}];
@@ -130,9 +130,9 @@ UInt32 const VoiceCommandIdMin = 1900000000;
- (void)sdl_updatePendingOperationsWithNewCurrentVoiceCommands:(NSArray<SDLVoiceCommand *> *)currentVoiceCommands {
for (NSOperation *operation in self.transactionQueue.operations) {
if (operation.isExecuting) { continue; }
- SDLVoiceCommandUpdateOperation *updateOp = (SDLVoiceCommandUpdateOperation *)operation;
- updateOp.currentVoiceCommands = currentVoiceCommands;
+ SDLVoiceCommandUpdateOperation *updateOp = (SDLVoiceCommandUpdateOperation *)operation;
+ updateOp.oldVoiceCommands = currentVoiceCommands;
}
}