diff options
author | Yunjin Lee <yunjin-.lee@samsung.com> | 2018-05-03 13:19:29 +0900 |
---|---|---|
committer | Yunjin Lee <yunjin-.lee@samsung.com> | 2018-05-03 13:34:36 +0900 |
commit | ea043e80c30be829bc82b5e20fb244dcbf52b6fa (patch) | |
tree | 5efada93e12f66144eec31fcd000b15989d13ad6 | |
parent | ecf0d377a890854a48dd89bbf92ce92f027ffcb1 (diff) | |
download | privacy-setting-ea043e80c30be829bc82b5e20fb244dcbf52b6fa.tar.gz privacy-setting-ea043e80c30be829bc82b5e20fb244dcbf52b6fa.tar.bz2 privacy-setting-ea043e80c30be829bc82b5e20fb244dcbf52b6fa.zip |
Terminate app after policy updatesubmit/tizen/20180515.100337submit/tizen/20180503.090649accepted/tizen/unified/20180516.065613
Change-Id: I82420f9cc75ba184792e8be64991a04b249793e9
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
-rw-r--r-- | ui/src/privacy_package_list_view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/privacy_package_list_view.c b/ui/src/privacy_package_list_view.c index f754031..841168e 100644 --- a/ui/src/privacy_package_list_view.c +++ b/ui/src/privacy_package_list_view.c @@ -277,7 +277,6 @@ static void privacy_package_check_changed_cb(void *data, Evas_Object *obj, void log_if(ret != NOTIFICATION_ERROR_NONE, 1, "notification_status_message_post failed. ret = %s", get_error_message(ret)); } pd->status = false; - __terminate_app(pkgid); } else { level = "Allow"; pd->status = true; @@ -324,6 +323,9 @@ static void privacy_package_check_changed_cb(void *data, Evas_Object *obj, void ret = security_manager_policy_update_send(policy_update_request); log_if(ret != SECURITY_MANAGER_SUCCESS, 1, "security-manager update req failed. ret = %d", ret); + if (pd->status == false) + __terminate_app(pkgid); + /* Free policy entries */ for (--entry_index; entry_index >= 0; --entry_index) security_manager_policy_entry_free(entry[entry_index]); |