diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2021-03-24 15:58:56 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2021-03-24 15:58:56 -0400 |
commit | 7469bb5f402b3371d56458e9ac965f952988510d (patch) | |
tree | 4c24d4102acee7559f5775ea929c8d62ed47d6c5 | |
parent | 7219fa426420598a909b6be28e45c6bd66cc0887 (diff) | |
download | sdl_core-fix/setup_hmi_state_before_onappregistered.tar.gz |
Set default HMI state before sending OnAppRegistered to HMIfix/setup_hmi_state_before_onappregistered
-rw-r--r-- | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc index 920805be7c..29252db9b1 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc @@ -439,10 +439,6 @@ void FinishSendingResponseToMobile(const smart_objects::SmartObject& msg_params, &(msg_params[strings::app_hmi_type])); } - // Default HMI level should be set before any permissions validation, since - // it relies on HMI level. - app_manager.OnApplicationRegistered(application); - // Once HMI level is set we can safely forward system capabilities for the // main window and it won't be blocked by policies application->display_capabilities_builder().StopWaitingForWindow( @@ -699,6 +695,10 @@ void RegisterAppInterfaceRequest::Run() { resume_ctrl.StartWaitingForDisplayCapabilitiesUpdate(application, is_resumption_required); + // Default HMI level should be set before any permissions validation or + // sending OnAppRegistered to the HMI, since these rely on HMI level. + application_manager_.OnApplicationRegistered(application); + SendOnAppRegisteredNotificationToHMI( application, is_resumption_required && !is_resumption_failed_); |