Changes that are related to changes in LaunchScreenData structure 51/114451/2
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Mon, 13 Feb 2017 10:34:37 +0000 (11:34 +0100)
committerjaekuk lee <juku1999@samsung.com>
Fri, 3 Mar 2017 01:15:56 +0000 (17:15 -0800)
Change-Id: I556c4443df06cdbd55588447c00082b9219d6ebd

runtime/browser/splash_screen.cc

index 89649c6bdffb17b7bcee1af68ae985e95da632f1..6b7b456223959147635adb21deeaa9b91469473f 100755 (executable)
@@ -169,11 +169,11 @@ void SplashScreen::SetBackground(
   std::vector<int> border_values;
   std::vector<BorderOption> border_options;
 
-  if (!splash_data.background_image.empty() &&
+  if (!splash_data.background_images.empty() &&
       ParseImageBorder(
           splash_data.image_border, &border_values, &border_options)) {
     const std::string& background_image_path =
-        splash_data.background_image.front();
+        splash_data.background_images.front().first;
 
     background_image_ = elm_image_add(background_);
     evas_object_image_file_set(background_image_,
@@ -222,7 +222,9 @@ void SplashScreen::SetImage(
   image_ = elm_image_add(background_);
   if (!image_) return;
 
-  const std::string& image_path = splash_data.image.front();
+  if (splash_data.images.empty()) return;
+
+  const std::string& image_path = splash_data.images.front().first;
   elm_image_file_set(image_, (app_path + image_path).c_str(), NULL);
   evas_object_resize(image_, bound.first, bound.second);
   evas_object_show(image_);