va_start(args, num);
- ret = dbus_method_sync_pairs(app_match[match].bus,
+ ret = dbus_method_async_pairs(app_match[match].bus,
app_match[match].path,
app_match[match].iface,
app_match[match].method,
num, args);
va_end(args);
+ pm_change_internal(INTERNAL_LOCK_POPUP, LCD_NORMAL);
return ret;
}
int launch_message_post(char *type)
{
char *param[1];
+ int ret;
if (!type)
return -EINVAL;
param[0] = type;
- return dbus_method_sync(POPUP_BUS_NAME,
+ ret = dbus_method_async(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
"MessagePostOn",
"s", param);
+ pm_change_internal(INTERNAL_LOCK_POPUP, LCD_NORMAL);
+ return ret;
}
int add_notification(char *type)
snprintf(id_str, sizeof(id_str), "%d", id);
param[0] = id_str;
- return dbus_method_sync(POPUP_BUS_NAME,
+ return dbus_method_async(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
type, "i", param);
#include "core/edbus-handler.h"
#include "core/common.h"
+#include "display/poll.h"
#define APP_POWERKEY "powerkey"
#define APP_DEFAULT "system"