diff options
author | Justin Gluck <justin.gluck@livio.io> | 2019-04-05 10:27:39 -0400 |
---|---|---|
committer | Justin Gluck <justin.gluck@livio.io> | 2019-04-05 10:27:39 -0400 |
commit | 574de6dac7264c5624914381ac0269926d408d10 (patch) | |
tree | 4f4b31addaedd03b2c187fb5b13a2c12d9cfcfca | |
parent | a0aab72c7802e2d488f6887137a993fb73007dfa (diff) | |
download | sdl_ios-574de6dac7264c5624914381ac0269926d408d10.tar.gz |
Removed check for class typebugfix/issue-1218-Remove-class-check-for-actualLanguage-
-rw-r--r-- | SmartDeviceLink/SDLLifecycleManager.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m index e40159038..25d7e169c 100644 --- a/SmartDeviceLink/SDLLifecycleManager.m +++ b/SmartDeviceLink/SDLLifecycleManager.m @@ -333,7 +333,7 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; BOOL delegateCanUpdateLifecycle = [self.delegate respondsToSelector:@selector(managerShouldUpdateLifecycleToLanguage:)]; // language mismatch? but actual language is a supported language? and delegate has implemented method? - if ([actualLanguage isKindOfClass:[NSString class]] && ![actualLanguage isEqualToEnum:desiredLanguage] && [supportedLanguages containsObject:actualLanguage] && delegateCanUpdateLifecycle) { + if (![actualLanguage isEqualToEnum:desiredLanguage] && [supportedLanguages containsObject:actualLanguage] && delegateCanUpdateLifecycle) { [self sdl_transitionToState:SDLLifecycleStateUpdatingConfiguration]; } else { [self sdl_transitionToState:SDLLifecycleStateSettingUpManagers]; @@ -344,7 +344,6 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; // we can expect that the delegate has implemented the update method and the actual language is a supported language SDLLanguage actualLanguage = self.registerResponse.language; - if ([actualLanguage isKindOfClass:[NSString class]]) { SDLLifecycleConfigurationUpdate *configUpdate = [self.delegate managerShouldUpdateLifecycleToLanguage:actualLanguage]; if (configUpdate) { @@ -369,7 +368,6 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; changeRegistration.vrSynonyms = configUpdate.voiceRecognitionCommandNames; [self sendConnectionManagerRequest:changeRegistration withResponseHandler:nil]; - } } [self sdl_transitionToState:SDLLifecycleStateSettingUpManagers]; |