Modify messaging resctriction handler 75/102075/1
authoryeji01kim <yeji01.kim@samsung.com>
Mon, 5 Dec 2016 01:53:06 +0000 (10:53 +0900)
committeryeji01kim <yeji01.kim@samsung.com>
Mon, 5 Dec 2016 01:53:06 +0000 (10:53 +0900)
Change-Id: Icd91a88a1aff577ea996e81060ebea209db17e03

src/restriction.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 458a8e0..f61bb9d
@@ -860,12 +860,12 @@ int set_messaging_state_handler(struct xtk_policy *self)
                return POLICY_RESULT_FAIL;
        }
 
-       if (dpm_restriction_set_messaging_state(handle, allow) != 0) {
+       if (dpm_restriction_set_messaging_state(handle, "sim1", allow) != 0) {
                dpm_manager_destroy(handle);
                return POLICY_RESULT_FAIL;
        }
 
-       if (dpm_restriction_get_messaging_state(handle, &state) != 0) {
+       if (dpm_restriction_get_messaging_state(handle, "sim1", &state) != 0) {
                dpm_manager_destroy(handle);
                return POLICY_RESULT_FAIL;
        }
@@ -892,7 +892,7 @@ int get_messaging_state_handler(struct xtk_policy *self)
                return POLICY_RESULT_FAIL;
        }
 
-       if (dpm_restriction_get_messaging_state(handle, &state) == 0) {
+       if (dpm_restriction_get_messaging_state(handle, "sim1", &state) == 0) {
                dpm_manager_destroy(handle);
                xtk_open_message_popup(self, STATE_CHANGE_MESSAGE(state));
                return POLICY_RESULT_NONE;