Modify logic to set Home screen wallpaper. 12/189412/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.011758 accepted/tizen/unified/20180918.063000 submit/tizen/20180918.122017 submit/tizen_5.0/20181101.000001
authorNilesh Trimbake <t.shripati@samsung.com>
Mon, 17 Sep 2018 11:22:29 +0000 (16:52 +0530)
committerNilesh Trimbake <t.shripati@samsung.com>
Mon, 17 Sep 2018 11:22:29 +0000 (16:52 +0530)
This patch set default home screen wallpaper,
if home screen wallpaper is NULL.

Change-Id: I624cf7c1fdf31d018c8e0d04dc17d697b1162182

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;
                }
        }