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;
}
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;