summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/private/SDLPreloadPresentChoicesOperation.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/private/SDLPreloadPresentChoicesOperation.m')
-rw-r--r--SmartDeviceLink/private/SDLPreloadPresentChoicesOperation.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/private/SDLPreloadPresentChoicesOperation.m b/SmartDeviceLink/private/SDLPreloadPresentChoicesOperation.m
index da079dcd3..692013e08 100644
--- a/SmartDeviceLink/private/SDLPreloadPresentChoicesOperation.m
+++ b/SmartDeviceLink/private/SDLPreloadPresentChoicesOperation.m
@@ -162,6 +162,8 @@ typedef NS_ENUM(NSUInteger, SDLPreloadPresentChoicesOperationState) {
[super start];
if (self.isCancelled) { return; }
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sdl_keyboardInputNotification:) name:SDLDidReceiveKeyboardInputNotification object:nil];
+
// If we have no loaded cells, reset choice ids to ensure reconnections restart numbering
if (self.loadedCells.count == 0) {
SDLPreloadPresentChoicesOperationUtilities.choiceId = 0;
@@ -311,8 +313,6 @@ typedef NS_ENUM(NSUInteger, SDLPreloadPresentChoicesOperationState) {
self.currentState = SDLPreloadPresentChoicesOperationStateUpdatingKeyboardProperties;
if (self.keyboardDelegate == nil) { return completionHandler(nil); }
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sdl_keyboardInputNotification:) name:SDLDidReceiveKeyboardInputNotification object:nil];
-
// Check if we're using a keyboard (searchable) choice set and setup keyboard properties if we need to
if (self.keyboardDelegate != nil && [self.keyboardDelegate respondsToSelector:@selector(customKeyboardConfiguration)]) {
SDLKeyboardProperties *customProperties = self.keyboardDelegate.customKeyboardConfiguration;