summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLLifecycleManager.m
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2018-02-20 11:16:57 -0500
committerJoel Fischer <joeljfischer@gmail.com>2018-02-20 11:16:57 -0500
commit089da67e74ac654d2e851565cab23de0bc58d973 (patch)
tree2da7c372471dbde8c923766af7475bd392a6ca59 /SmartDeviceLink/SDLLifecycleManager.m
parent91d10089763785dce19c8520ecab77ee8a15cec0 (diff)
parent198f1615c20aedb4efe312efd80fce170ed88c9a (diff)
downloadsdl_ios-089da67e74ac654d2e851565cab23de0bc58d973.tar.gz
Merge branch 'develop' into feature/issue_723_sequential_send_rpcsfeature/issue_723_sequential_send_rpcs
# Conflicts: # SmartDeviceLink/SDLLifecycleManager.m
Diffstat (limited to 'SmartDeviceLink/SDLLifecycleManager.m')
-rw-r--r--SmartDeviceLink/SDLLifecycleManager.m12
1 files changed, 10 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m
index e2ad6291b..22eb77da3 100644
--- a/SmartDeviceLink/SDLLifecycleManager.m
+++ b/SmartDeviceLink/SDLLifecycleManager.m
@@ -118,8 +118,10 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
_permissionManager = [[SDLPermissionManager alloc] init];
_lockScreenManager = [[SDLLockScreenManager alloc] initWithConfiguration:_configuration.lockScreenConfig notificationDispatcher:_notificationDispatcher presenter:[[SDLLockScreenPresenter alloc] init]];
- if ([configuration.lifecycleConfig.appType isEqualToEnum:SDLAppHMITypeNavigation]
- || [configuration.lifecycleConfig.appType isEqualToEnum:SDLAppHMITypeProjection]) {
+ if ([configuration.lifecycleConfig.appType isEqualToEnum:SDLAppHMITypeNavigation] ||
+ [configuration.lifecycleConfig.appType isEqualToEnum:SDLAppHMITypeProjection] ||
+ [configuration.lifecycleConfig.additionalAppTypes containsObject:SDLAppHMITypeNavigation] ||
+ [configuration.lifecycleConfig.additionalAppTypes containsObject:SDLAppHMITypeProjection]) {
_streamManager = [[SDLStreamingMediaManager alloc] initWithConnectionManager:self configuration:configuration.streamingMediaConfig];
} else {
SDLLogV(@"Skipping StreamingMediaManager setup due to app type");
@@ -358,6 +360,11 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
// Send the hmi level going from NONE to whatever we're at now (could still be NONE)
dispatch_async(dispatch_get_main_queue(), ^{
[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];
+ }
});
}
@@ -547,6 +554,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];