summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Keeler <jacob.keeler@livioradio.com>2017-05-15 15:54:59 -0400
committerGitHub <noreply@github.com>2017-05-15 15:54:59 -0400
commit458fa67468b2c10a7f8eb18277a83eb90c2f8004 (patch)
treeba590f44a04f78f8a2ec3e080aa901e6708e806a
parent602ceb18fdb30e0b5556e7a611005d03fd2ad055 (diff)
parentb25802ccef1cb94f1a0ed6d2f5c0e443327ee874 (diff)
downloadsdl_core-458fa67468b2c10a7f8eb18277a83eb90c2f8004.tar.gz
Merge pull request #1487 from LitvinenkoIra/fix/update_needed_in_case_of_failed_retry_strategy
Fix SDL doesn't send SDL.OnStatusUpdate(UPDATE_NEEDED) in case of failed retry strategy during previous IGN_ON
-rw-r--r--src/components/policy/policy_regular/src/policy_manager_impl.cc3
-rw-r--r--src/components/policy/policy_regular/src/status.cc3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/components/policy/policy_regular/src/policy_manager_impl.cc b/src/components/policy/policy_regular/src/policy_manager_impl.cc
index e818fb0e3f..563dfbb168 100644
--- a/src/components/policy/policy_regular/src/policy_manager_impl.cc
+++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc
@@ -979,7 +979,8 @@ StatusNotifier PolicyManagerImpl::AddApplication(
device_consent);
} else {
PromoteExistedApplication(application_id, device_consent);
- return utils::MakeShared<utils::CallNothing>();
+ return utils::MakeShared<CallStatusChange>(update_status_manager_,
+ device_consent);
}
}
diff --git a/src/components/policy/policy_regular/src/status.cc b/src/components/policy/policy_regular/src/status.cc
index 0d42c807d8..8d65c606d0 100644
--- a/src/components/policy/policy_regular/src/status.cc
+++ b/src/components/policy/policy_regular/src/status.cc
@@ -68,6 +68,9 @@ void policy::UpdateNeededStatus::ProcessEvent(
case kOnResetPolicyTableNoUpdate:
manager->SetNextStatus(utils::MakeShared<UpToDateStatus>());
break;
+ case kOnNewAppRegistered:
+ manager->SetNextStatus(utils::MakeShared<UpdateNeededStatus>());
+ break;
default:
break;
}