#include "notification_view.h"
#include "square_view.h"
+#define KEY_LAUNCH_TYPE "launch_type"
+#define TYPE_SQUARE "infosquare"
+
SET_TAG(PACKAGE)
struct _appdata {
static void _control(app_control_h control, void *data)
{
struct _appdata *ad;
+ int r;
+ char *type = NULL;
if (!data) {
_ERR("failed to get data");
if (ad->win)
elm_win_activate(ad->win);
- viewmgr_push_view(NOTIFICATION_VIEW);
+ r = app_control_get_extra_data(control, KEY_LAUNCH_TYPE, &type);
+ if (r == SERVICE_ERROR_NONE &&
+ type && !strcmp(type, TYPE_SQUARE))
+ viewmgr_push_view(SQUARE_VIEW);
+ else
+ viewmgr_push_view(NOTIFICATION_VIEW);
}
int main(int argc, char *argv[])