From d16229d9eb7074328b8b15e2c939505517fce404 Mon Sep 17 00:00:00 2001 From: RomanReznichenkoLuxoft <85177915+RomanReznichenkoLuxoft@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:05:53 +0300 Subject: Send UI.ChangeRegistration for background application after PTU (#3927) --- .../application_manager/src/application_manager_impl.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/components/application_manager/src/application_manager_impl.cc b/src/components/application_manager/src/application_manager_impl.cc index 5066c6dfc6..d59bc92180 100644 --- a/src/components/application_manager/src/application_manager_impl.cc +++ b/src/components/application_manager/src/application_manager_impl.cc @@ -4550,11 +4550,10 @@ void ApplicationManagerImpl::OnUpdateHMIAppType( const mobile_apis::HMILevel::eType app_hmi_level = (*it)->hmi_level(mobile_apis::PredefinedWindows::DEFAULT_WINDOW); - if (app_hmi_level == mobile_api::HMILevel::HMI_BACKGROUND) { - MessageHelper::SendUIChangeRegistrationRequestToHMI(*it, *this); - } else if ((app_hmi_level == mobile_api::HMILevel::HMI_FULL) || - (app_hmi_level == mobile_api::HMILevel::HMI_LIMITED)) { - MessageHelper::SendUIChangeRegistrationRequestToHMI(*it, *this); + + MessageHelper::SendUIChangeRegistrationRequestToHMI(*it, *this); + if ((app_hmi_level == mobile_api::HMILevel::HMI_FULL) || + (app_hmi_level == mobile_api::HMILevel::HMI_LIMITED)) { state_controller().SetRegularState( *it, mobile_apis::PredefinedWindows::DEFAULT_WINDOW, -- cgit v1.2.1