Disable Pre-resume from __obj_move_cb 09/225709/2
authorhyunho <hhstark.kang@samsung.com>
Mon, 2 Dec 2019 01:38:00 +0000 (10:38 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Mon, 24 Feb 2020 05:44:11 +0000 (05:44 +0000)
Change-Id: Ie10574c2cdebdef80edafae48c4c07015ef496d1
Signed-off-by: hyunho <hhstark.kang@samsung.com>
watch-control/src/control.c

index 001ba20b12bf647642da069639f75016e2420e61..a08d0630acbe158c5774249ef15bbe24d9c8af15 100644 (file)
@@ -192,27 +192,6 @@ static void __aul_watch_control_cb(bundle *b, void *user_data)
        }
 }
 
-static gboolean __force_resume_cb(gpointer data)
-{
-       watch_manager_resume();
-       return G_SOURCE_REMOVE;
-}
-
-static void __obj_move_cb(void *data, Evas *e, Evas_Object *obj,
-               void *event_info)
-{
-       if (__watch_is_visible() && __lcd_is_on()) {
-               _I("Move manual render");
-               /*
-                 If force_resume is true, it will make resume status for Viewer/Watchface both.
-                 If force_resume is false, it will resume Watchface only when Viewer is on resume status.
-                 Viewer can move watch object on background. So just pass false, leave Viewer decide resume status of watchface
-               */
-               __manual_render_start(false);
-               g_idle_add(__force_resume_cb, NULL);
-       }
-}
-
 static Eina_Bool __window_on_pre_visibility(void *data, int type, void *event)
 {
         Ecore_Wl2_Event_Window_Pre_Visibility_Change *ev = event;
@@ -459,8 +438,6 @@ static void __screen_connector_toolkit_evas_added_cb(const char *appid, const ch
        _D("w: %d, h: %d, x: %d y: %d", w, h, x, y);
        evas_object_smart_callback_call(__win, WATCH_SMART_SIGNAL_ADDED, image);
        evas_object_data_set(__win, "tbm,watch", image);
-       evas_object_event_callback_add(image, EVAS_CALLBACK_MOVE,
-                       __obj_move_cb, image);
        screen_connector_toolkit_evas_get_rid(image, (int *)&__watch_rid);
        __flush_pending_queue(__watch_rid);
        __change_viewer_visibility(__viewer_visibility, false);
@@ -482,8 +459,6 @@ static void __screen_connector_toolkit_evas_removed_cb(const char *appid, const
 
        _D("obj(%p) removed", image);
        evas_object_smart_callback_call(__win, WATCH_SMART_SIGNAL_REMOVED, image);
-       evas_object_event_callback_del_full(image, EVAS_CALLBACK_MOVE,
-                       __obj_move_cb, image);
        cur_image = evas_object_data_get(__win, "tbm,watch");
        if (cur_image == image) {
                evas_object_data_set(__win, "tbm,watch", NULL);