const char *name;
struct watch_priv *watch_data = data;
struct evt_ops *eo;
+ struct watch_time_s timeinfo;
name = vconf_keynode_get_name(key);
_ret_if(name == NULL);
alarm_id = 0;
}
__set_ambient_tick_cb();
+ __get_timeinfo(&timeinfo);
+ priv.ops->ambient_tick(&timeinfo, priv.ops->data);
}
return;
/* LCOV_EXCL_START */
static int __signal_alpm_handler(int ambient, void *data)
{
+ struct watch_time_s timeinfo;
+
_D("_signal_alpm_handler: ambient: %d, state: %d", ambient, priv.state);
if (priv.ambient_mode == ambient) {
priv.ambient_mode = 1;
__do_app(WE_AMBIENT, &priv, NULL);
- if (priv.ops && priv.ops->ambient_tick)
+ if (priv.ops && priv.ops->ambient_tick) {
__set_ambient_tick_cb();
+ __get_timeinfo(&timeinfo);
+ priv.ops->ambient_tick(&timeinfo, priv.ops->data);
+ }
/* Send a update done signal */
_watch_core_send_alpm_update_done();