Change Ask User to Privacy Denied plugin 94/120894/5
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Fri, 24 Mar 2017 13:06:53 +0000 (14:06 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Sun, 2 Apr 2017 13:05:16 +0000 (06:05 -0700)
Some old application did not handle runtime popups properly and
crashed during waiting for user response.
New plugin will give answer immiediatelly.

Change-Id: I4f1a170549f9ae1967568594afa91365f15d67de

ui/src/privacy_package_list_view.c

index e043235..b796d96 100644 (file)
@@ -117,7 +117,7 @@ static void __get_package_privacy_status(pkg_data_s* pkg_data, char* privilege_n
                        if (strcmp("Allow", result) == 0) {
                                pkg_data->status = EINA_TRUE;
                                break;
-                       } else if (strcmp("Deny", result) == 0 || strcmp("Ask user", result) == 0) {
+                       } else if (strcmp("Deny", result) == 0 || strcmp("ASK_USER_LEGACY", result) == 0 || strcmp("PRIVACY_DENY", result) == 0 || strcmp("Ask user", result) == 0) {
                                pkg_data->status = EINA_FALSE;
                                break;
                        } else {
@@ -207,7 +207,7 @@ static void privacy_package_check_changed_cb(void *data, Evas_Object *obj, void
 
                        char* level;
                        if (id->status) {
-                               level = "Ask user";
+                               level = "ASK_USER_LEGACY";
                                id->status = false;
                        } else {
                                level = "Allow";