#include <dirent.h>
#include <vconf.h>
-
#include <Elementary.h>
+#include <efl_util.h>
-#include <boot.h>
-#include <animation.h>
-
+#include "boot.h"
+#include "animation.h"
#include "log.h"
#define OVER_COUNT 19
static Eina_Bool _end_cb(void *data)
{
+ int type = (int) data;
_D("_end_cb is invoked");
- printf("_end_cb is invoked\n");
- if (vconf_set_int(VCONFKEY_BOOT_ANIMATION_FINISHED, 1) != 0)
+
+ if (vconf_set_int(VCONFKEY_BOOT_ANIMATION_FINISHED, 1) != 0) {
_E("Failed to set finished set");
- elm_exit();
+ }
+ if (type == TYPE_ON) {
+ _D("EXIT on BOOTING");
+ elm_exit();
+ } else {
+ /* Delete Previous Layout */
+ if (s_animation.layout) evas_object_del(s_animation.layout);
+
+ Evas_Object *disp_block = NULL;
+ disp_block = evas_object_rectangle_add(evas_object_evas_get(s_animation.win));
+ elm_win_resize_object_add(s_animation.win, disp_block);
+ evas_object_color_set(disp_block, 0, 0, 0, 255);
+ evas_object_show(disp_block);
+ }
return ECORE_CALLBACK_CANCEL;
}
(s_animation.h - h) >> 1);
evas_object_show(s_animation.txt);
}
- ecore_timer_add(1, _end_cb, NULL);
+ ecore_timer_add(1, _end_cb, (void *)TYPE_OFF);
} else {
_D("TYPE_ON");
- _end_cb(NULL);
+ _end_cb((void *)TYPE_ON);
}
}
}
if (s_animation.state == TYPE_OFF || s_animation.state == TYPE_OFF_WITH_MSG) {
_D("We are turning off the Tizen");
- elm_win_alpha_set(s_animation.win, EINA_TRUE);
}
+ efl_util_set_notification_window_level(s_animation.win, EFL_UTIL_NOTIFICATION_LEVEL_HIGH);
evas_object_smart_callback_add(s_animation.win, "delete-request", win_del, NULL);
s_animation.evas = evas_object_evas_get(s_animation.win);
elm_win_borderless_set(s_animation.win, 1);
elm_win_indicator_mode_set(s_animation.win, ELM_WIN_INDICATOR_HIDE);
evas_object_move(s_animation.win, 0, 0);
-
-/* if (s_animation.w > s_animation.h) {
- int t;
- elm_win_rotation_with_resize_set(s_animation.win, 90);
- t = s_animation.w;
- s_animation.w = s_animation.h;
- s_animation.h = t;
- }*/
-
evas_object_show(s_animation.win);
s_animation.ee = ecore_evas_ecore_evas_get(s_animation.evas);