summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunjin Lee <yunjin-.lee@samsung.com>2018-05-03 13:19:29 +0900
committerYunjin Lee <yunjin-.lee@samsung.com>2018-05-03 13:34:36 +0900
commitea043e80c30be829bc82b5e20fb244dcbf52b6fa (patch)
tree5efada93e12f66144eec31fcd000b15989d13ad6
parentecf0d377a890854a48dd89bbf92ce92f027ffcb1 (diff)
downloadprivacy-setting-ea043e80c30be829bc82b5e20fb244dcbf52b6fa.tar.gz
privacy-setting-ea043e80c30be829bc82b5e20fb244dcbf52b6fa.tar.bz2
privacy-setting-ea043e80c30be829bc82b5e20fb244dcbf52b6fa.zip
Change-Id: I82420f9cc75ba184792e8be64991a04b249793e9 Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
-rw-r--r--ui/src/privacy_package_list_view.c4
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]);