summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksym Ked (GitHub) <mked@luxoft.com>2018-11-14 17:57:24 +0200
committerMaksym Ked (GitHub) <mked@luxoft.com>2018-11-30 18:29:20 +0200
commit01cefc6b1a2b461264bc55e2cce5e7ca1bc86810 (patch)
tree01d55a7fb0edc9cae8c3d34e697a5e269e611408
parenta3f9420c5f542f58ba959026aa1d04f0f21a64c9 (diff)
downloadsdl_core-feature/interior_vehicle_data_resumption.tar.gz
Added IVD to resumption without data checkfeature/interior_vehicle_data_resumption
-rw-r--r--src/components/application_manager/src/resumption/resumption_data_processor.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/application_manager/src/resumption/resumption_data_processor.cc b/src/components/application_manager/src/resumption/resumption_data_processor.cc
index 94211035a3..65ac9b8947 100644
--- a/src/components/application_manager/src/resumption/resumption_data_processor.cc
+++ b/src/components/application_manager/src/resumption/resumption_data_processor.cc
@@ -142,9 +142,12 @@ bool ResumptionDataProcessor::HasSubscriptionsToRestore(
const bool has_waypoints_subscriptions =
subscriptions[strings::subscribed_for_way_points].asBool();
- const bool has_subscriptions_to_restore = has_ivi_subscriptions ||
- has_button_subscriptions ||
- has_waypoints_subscriptions;
+ const bool has_interior_vehicle_data_to_restore =
+ !subscriptions[kModuleData].empty();
+
+ const bool has_subscriptions_to_restore =
+ has_ivi_subscriptions || has_button_subscriptions ||
+ has_waypoints_subscriptions || has_interior_vehicle_data_to_restore;
LOG4CXX_DEBUG(logger_,
std::boolalpha << "Application has subscriptions to restore: "