summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/mobile/delete_interaction_choice_set_request.cc
diff options
context:
space:
mode:
authorAndrey Oleynik <aoleynik@luxoft.com>2017-06-05 11:25:52 +0300
committerAndrey Oleynik <aoleynik@luxoft.com>2017-06-07 18:17:48 +0300
commit1c4401564b88724e1ce0e783b8ada8703d493a35 (patch)
tree289bbe6136013280add9d3d95e4cbfc06dcb1c98 /src/components/application_manager/src/commands/mobile/delete_interaction_choice_set_request.cc
parentaaa56de4838de3147616c7e88d312a2dc623ad7d (diff)
downloadsdl_core-1c4401564b88724e1ce0e783b8ada8703d493a35.tar.gz
Moves hash update logic into base class, checks UI interface state now
In case RPC is expected to update application hash but UI component is not available, i.e. UI.IsReady returned 'false', hash update must be skipped. Changes move logic of hash updating into base class instead of duplicating it inside every related command class.
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/delete_interaction_choice_set_request.cc')
-rw-r--r--src/components/application_manager/src/commands/mobile/delete_interaction_choice_set_request.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/application_manager/src/commands/mobile/delete_interaction_choice_set_request.cc b/src/components/application_manager/src/commands/mobile/delete_interaction_choice_set_request.cc
index 6ef8e5d9da..bfbb2429ac 100644
--- a/src/components/application_manager/src/commands/mobile/delete_interaction_choice_set_request.cc
+++ b/src/components/application_manager/src/commands/mobile/delete_interaction_choice_set_request.cc
@@ -90,9 +90,11 @@ void DeleteInteractionChoiceSetRequest::Run() {
// Checking of HMI responses will be implemented with APPLINK-14600
const bool result = true;
SendResponse(result, mobile_apis::Result::SUCCESS);
- if (result) {
- app->UpdateHash();
- }
+}
+
+bool DeleteInteractionChoiceSetRequest::Init() {
+ hash_update_mode_ = HashUpdateMode::kDoHashUpdate;
+ return true;
}
bool DeleteInteractionChoiceSetRequest::ChoiceSetInUse(