summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranirudha_r.c <anirudha_r.c@samsung.com>2016-12-26 13:34:42 +0530
committeranirudha_r.c <anirudha_r.c@samsung.com>2016-12-26 14:37:24 +0530
commit69312a33eeece85ce0c2c4cae8ca71790f491bc3 (patch)
tree46e4fca8137848b71a79111189718401b07f49c0
parente91bb4db1cdc19dda048512a2efc902bdb3aaaa5 (diff)
downloadtimer-69312a33eeece85ce0c2c4cae8ca71790f491bc3.tar.gz
timer-69312a33eeece85ce0c2c4cae8ca71790f491bc3.tar.bz2
timer-69312a33eeece85ce0c2c4cae8ca71790f491bc3.zip
Change-Id: I13addc873da1e31961a6343a12773aee4fef592f
-rwxr-xr-xsrc/main.c13
-rwxr-xr-xtimer_alert/src/ring.c4
2 files changed, 12 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 26b1105..357846f 100755
--- a/src/main.c
+++ b/src/main.c
@@ -887,8 +887,13 @@ void _tmr_btn_update(struct appdata *ad)
}
}
+static void _reply_from_alert(app_control_h request, app_control_h reply, app_control_result_e result, void *user_data)
+{
+ _D("");
+ _tmr_view_change_to_timeset_cb(user_data);
+}
-void _launch_alert()
+void _launch_alert(void* data)
{
_TMR_ENTER_;
app_control_h app_control = NULL;
@@ -905,7 +910,7 @@ void _launch_alert()
app_control_set_operation(app_control, APP_CONTROL_OPERATION_DEFAULT);
app_control_set_app_id(app_control, "org.tizen.timer.alert");
app_control_add_extra_data(app_control, "type", "timer");
- ret = app_control_send_launch_request(app_control, NULL, NULL);
+ ret = app_control_send_launch_request(app_control, _reply_from_alert, data);
if (ret != 0)
TMR_ERR("ret = %d, launch request is failed", ret);
@@ -947,9 +952,7 @@ static Eina_Bool _tmr_timer_cb(void *data)
ad->due_time.tv_sec = -1;
_tmr_panel_time_update(ad);
- _launch_alert();
- ecore_timer_add(1.5, _tmr_view_change_to_timeset_cb, ad);
-
+ _launch_alert(ad);
return ECORE_CALLBACK_CANCEL;
} else {
_tmr_panel_time_update(ad);
diff --git a/timer_alert/src/ring.c b/timer_alert/src/ring.c
index 08aabaa..6233428 100755
--- a/timer_alert/src/ring.c
+++ b/timer_alert/src/ring.c
@@ -309,6 +309,10 @@ static void
app_control(app_control_h app_control, void *data)
{
_TMR_ENTER_;
+ app_control_h reply;
+ app_control_create(&reply);
+ app_control_reply_to_launch_request(reply, app_control, APP_CONTROL_RESULT_SUCCEEDED);
+ app_control_destroy(reply);
}
static void