Modify logic to set Home screen wallpaper.
[apps/native/menu-screen.git] / src / menu_screen.c
index 1d9c15e..66765d8 100644 (file)
@@ -265,10 +265,10 @@ static void _create_bg(void)
        evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
        evas_object_size_hint_min_set(bg, width, height);
        evas_object_size_hint_max_set(bg, width, height);
-       if (!elm_image_file_set(bg, buf, NULL)) {
+       if (buf == NULL || !elm_image_file_set(bg, buf, NULL)) {
                _E("Failed to set image file : %s", buf);
                if (!elm_image_file_set(bg, util_get_file_path(IMAGE_DIR"/home_001.png"), NULL)) {
-                       _E("Failed to set default image file: %s", util_get_file_path(IMAGE_DIR"/home_001.png")); 
+                       _E("Failed to set default image file: %s", util_get_file_path(IMAGE_DIR"/home_001.png"));
                        return;
                }
        }