From be88a0b1eac802335d3142d3fe008dc05900deba Mon Sep 17 00:00:00 2001 From: "Andrii Kalinich (GitHub)" Date: Wed, 25 Sep 2019 16:04:50 -0400 Subject: Fix IAP device transport switching sequence (#3034) * Add reregister wait list accessor and fix IsApplicationSwitched in RAI * Update CommandHolder class After introduction CommandSource enum there was possible to specify any different source for HMI and mobile commands. However, CommandHolder class logic was not updated to reflect these changes and still working with the hardcoded values. As a result commands factory of plugins may not able to create commands which were suspended during device transport switching and then restored back. This commit contains updated CommandHolder impl which reflects changes done and properly handles initial command source. * Fix affected UT * Fix style --- .../application_manager/include/application_manager/command_holder.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/application_manager/include/application_manager/command_holder.h') diff --git a/src/components/application_manager/include/application_manager/command_holder.h b/src/components/application_manager/include/application_manager/command_holder.h index 8cfe5f0889..3f5f657a0e 100644 --- a/src/components/application_manager/include/application_manager/command_holder.h +++ b/src/components/application_manager/include/application_manager/command_holder.h @@ -35,6 +35,7 @@ #include #include "application_manager/application.h" +#include "application_manager/commands/command.h" #include "smart_objects/smart_object.h" namespace application_manager { @@ -59,10 +60,12 @@ class CommandHolder { * internally * @param application Application pointer * @param type Command type + * @param source The source of suspended command * @param command Command */ virtual void Suspend(ApplicationSharedPtr application, CommandType type, + commands::Command::CommandSource source, smart_objects::SmartObjectSPtr command) = 0; /** -- cgit v1.2.1