diff options
author | Yunjin Lee <yunjin-.lee@samsung.com> | 2018-05-03 13:20:01 +0900 |
---|---|---|
committer | Yunjin Lee <yunjin-.lee@samsung.com> | 2018-05-03 13:33:50 +0900 |
commit | 43bc56f0395d6075b4c99db02845778268465c1f (patch) | |
tree | cae8ce2668289dcb0671b49d9efe20411b59a6f1 | |
parent | c0debd94dfe7be2f0cb5112fb9cc683140a403e4 (diff) | |
download | privacy-setting-43bc56f0395d6075b4c99db02845778268465c1f.tar.gz privacy-setting-43bc56f0395d6075b4c99db02845778268465c1f.tar.bz2 privacy-setting-43bc56f0395d6075b4c99db02845778268465c1f.zip |
Terminate app after policy updatesubmit/tizen/20180515.100348submit/tizen/20180503.090632accepted/tizen/unified/20180516.065617
Change-Id: I85a4ce9ab3a0e2990b59b968d1fc0ed1081c2ef3
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
-rw-r--r-- | ui/src/package_privacy_list_view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/package_privacy_list_view.c b/ui/src/package_privacy_list_view.c index 407ece3..a64a591 100644 --- a/ui/src/package_privacy_list_view.c +++ b/ui/src/package_privacy_list_view.c @@ -137,7 +137,6 @@ static void package_privacy_check_changed_cb(void *data, Evas_Object *obj, void else level = "Deny"; pd->status = false; - __terminate_app(); } else { level = "Allow"; pd->status = true; @@ -184,6 +183,9 @@ static void package_privacy_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(); + /* Free policy entries */ for (--entry_index; entry_index >= 0; --entry_index) security_manager_policy_entry_free(entry[entry_index]); |