diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2018-02-09 10:01:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09 10:01:10 -0500 |
commit | 60adfd892297dc3d0e7754762ed4502461ca6a60 (patch) | |
tree | 4df9956f5a181d16d8ada3593be0e5f6be41bb95 | |
parent | b8a7ef6396e59447b7de48f4f846053a0947913c (diff) | |
parent | 8e4ae2f611dd33c558064b3eef7b6d560f090f36 (diff) | |
download | sdl_ios-60adfd892297dc3d0e7754762ed4502461ca6a60.tar.gz |
Merge pull request #864 from t-yoshii/fix/notify-audio-streaming-state-at-ready
Notify audio streaming state when SDL mangaer become Ready
-rw-r--r-- | SmartDeviceLink/SDLLifecycleManager.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m index ece11b83f..b5b8cdc76 100644 --- a/SmartDeviceLink/SDLLifecycleManager.m +++ b/SmartDeviceLink/SDLLifecycleManager.m @@ -331,6 +331,11 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; // Send the hmi level going from NONE to whatever we're at now (could still be NONE) [self.delegate hmiLevel:SDLHMILevelNone didChangeToLevel:self.hmiLevel]; + + // Send the audio streaming state going from NOT_AUDIBLE to whatever we're at now (could still be NOT_AUDIBLE) + if ([self.delegate respondsToSelector:@selector(audioStreamingState:didChangeToState:)]) { + [self.delegate audioStreamingState:SDLAudioStreamingStateNotAudible didChangeToState:self.audioStreamingState]; + } } - (void)didEnterStateUnregistering { @@ -485,6 +490,7 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; self.systemContext = hmiStatusNotification.systemContext; SDLLogD(@"HMI level changed from %@ to %@", oldHMILevel, self.hmiLevel); + SDLLogD(@"Audio streaming state changed from %@ to %@", oldStreamingState, self.audioStreamingState); if ([self.lifecycleStateMachine isCurrentState:SDLLifecycleStateSettingUpHMI]) { [self.lifecycleStateMachine transitionToState:SDLLifecycleStateReady]; |