diff options
author | collin <collin+i@collinmcqueen.com> | 2020-10-29 12:41:45 -0400 |
---|---|---|
committer | collin <collin+i@collinmcqueen.com> | 2020-10-29 12:41:45 -0400 |
commit | 6d607f7923f852b099b967d58305d3255eb64f4e (patch) | |
tree | ff9b797e6d462a322758c6ac77ac4b0b2b01cfba | |
parent | 69c6067c91b8f8a44ac785c13753a3c348823919 (diff) | |
download | sdl_core-fix/activate_none.tar.gz |
prevent setting default hmi level of already activated appsfix/activate_none
-rw-r--r-- | src/components/application_manager/src/state_controller_impl.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/application_manager/src/state_controller_impl.cc b/src/components/application_manager/src/state_controller_impl.cc index 7a231d4cfc..1ba075f057 100644 --- a/src/components/application_manager/src/state_controller_impl.cc +++ b/src/components/application_manager/src/state_controller_impl.cc @@ -1011,9 +1011,10 @@ void StateControllerImpl::OnApplicationRegistered( const mobile_apis::HMILevel::eType default_level) { SDL_LOG_AUTO_TRACE(); - if (app->is_cloud_app()) { - // Return here, there should already be an onHMIStatus=FULL being processed - // for when the cloud app was initially activated by the hmi + if (app->hmi_level(mobile_apis::PredefinedWindows::DEFAULT_WINDOW) == + mobile_apis::HMILevel::HMI_FULL) { + // Return here, cloud or web apps may have already been activated + // by the time app registration is processed return; } // After app registration HMI level should be set for DEFAULT_WINDOW only |