summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLChoiceSetManager.m
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2019-08-06 15:12:59 -0400
committerNicoleYarroch <nicole@livio.io>2019-08-06 15:12:59 -0400
commit3ae19abd4448c5e145492169156d21b9d13c736d (patch)
tree974f985eae9682f9a7166836c7f77ce484fda9de /SmartDeviceLink/SDLChoiceSetManager.m
parent6f66c6e64933103c6afc94867eeb8e9e21486bdf (diff)
downloadsdl_ios-3ae19abd4448c5e145492169156d21b9d13c736d.tar.gz
Refactored cancelling keyboard
Diffstat (limited to 'SmartDeviceLink/SDLChoiceSetManager.m')
-rw-r--r--SmartDeviceLink/SDLChoiceSetManager.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLChoiceSetManager.m b/SmartDeviceLink/SDLChoiceSetManager.m
index fc0ea48b3..b5dc93069 100644
--- a/SmartDeviceLink/SDLChoiceSetManager.m
+++ b/SmartDeviceLink/SDLChoiceSetManager.m
@@ -349,11 +349,12 @@ UInt16 const ChoiceCellCancelIdMin = 1;
}
- (void)dismissKeyboard {
- // The keyboard will only be dismissed if the operation is executing. If the keyboard is not being shown, the `CancelInteraction` will not be sent.
for (SDLAsynchronousOperation *op in self.transactionQueue.operations) {
if (![op isKindOfClass:SDLPresentKeyboardOperation.class]) { continue; }
SDLPresentKeyboardOperation *keyboardOperation = (SDLPresentKeyboardOperation *)op;
+ if (!keyboardOperation.isExecuting) { continue; }
[keyboardOperation cancelKeyboard];
+ break;
}
}