summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorKartik Tidke <kr.tidke@samsung.com>2018-08-22 01:32:49 +0530
committerKartik Tidke <kr.tidke@samsung.com>2018-08-27 19:06:42 +0530
commit669f096c730dad688fbc7ea2c5c650bba6b08045 (patch)
tree4ad36831d00772abcba50bf1a199c242a39b91aa /src/main.c
parentaa52d63b34ca3a6e13c4ab8b576c84b6cb25f998 (diff)
downloadwatch-face-editor-669f096c730dad688fbc7ea2c5c650bba6b08045.tar.gz
watch-face-editor-669f096c730dad688fbc7ea2c5c650bba6b08045.tar.bz2
watch-face-editor-669f096c730dad688fbc7ea2c5c650bba6b08045.zip
Added multiple watch edit support
Change-Id: Ifedb73c4cefc56702132eda62aa34cc9783804e5 Signed-off-by: Kartik Tidke <kr.tidke@samsung.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 384daf9..57fd236 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,6 +19,8 @@
#include <view.h>
#include <vconf.h>
#include <watch-face-editor.h>
+#include <watch_control.h>
+
static struct main_info {
app_event_handler_h handlers[5];
@@ -39,19 +41,20 @@ app_control(app_control_h app_control, void *data)
//TODO
/* Handle the launch request. */
//for launching editor from watch
- //char *watch_appid;
- //app_control_get_extra_data(app_control, APP_CONTROL_DATA_SELECTED, &watch_appid);
-
- char *home_watch = NULL;
- home_watch = vconf_get_str(VCONFKEY_WMS_CLOCKS_SET_IDLE);
- __I("Home watch: %s", home_watch);
- view_create(home_watch);
+ char *watch_appid;
+ app_control_get_extra_data(app_control, "watchface_app_name", &watch_appid);
+ __I("Edit requested for: %s", watch_appid);
+ if (watch_appid != NULL)
+ view_create(watch_appid);
+ else
+ view_create("org.tizen.analog-watch");
}
static void
app_pause(void *data)
{
__I("%s", __func__);
+ watch_manager_notify_paused_status_of_viewer();
ui_app_exit();
/* Take necessary actions when application becomes invisible. */
}
@@ -60,6 +63,7 @@ static void
app_resume(void *data)
{
__I("%s", __func__);
+ watch_manager_notify_resumed_status_of_viewer();
/* Take necessary actions when application becomes visible. */
}