diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2017-02-07 08:58:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-07 08:58:30 -0500 |
commit | 749c4ea4a606f163bacf2d8c7ab7f351c53fb2e0 (patch) | |
tree | 620ef53f89b283575efb54b42a226f701e8c2a9c | |
parent | abf020457e27c1174dde846734b73506cbeb0e28 (diff) | |
parent | 8f6eddc6615417730b35e1b829e760c3b2f883c5 (diff) | |
download | sdl_ios-749c4ea4a606f163bacf2d8c7ab7f351c53fb2e0.tar.gz |
Merge pull request #517 from smartdevicelink/hotfix/issue_516_hmi_change
Sending HMI Level Change delegate only when actually different
-rw-r--r-- | SmartDeviceLink/SDLLifecycleManager.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m index 1ccc74447..b08abc343 100644 --- a/SmartDeviceLink/SDLLifecycleManager.m +++ b/SmartDeviceLink/SDLLifecycleManager.m @@ -466,7 +466,9 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; return; } - [self.delegate hmiLevel:oldHMILevel didChangeToLevel:self.hmiLevel]; + if (![oldHMILevel isEqualToEnum:self.hmiLevel]) { + [self.delegate hmiLevel:oldHMILevel didChangeToLevel:self.hmiLevel]; + } } - (void)remoteHardwareDidUnregister:(SDLRPCNotificationNotification *)notification { |