[compatibility] Set background color as black for wearable web apps 84/169284/5
authorGuneet K <g.khosla@samsung.com>
Mon, 5 Feb 2018 11:30:00 +0000 (17:00 +0530)
committerguneet khosla <g.khosla@samsung.com>
Tue, 6 Feb 2018 05:52:02 +0000 (05:52 +0000)
Call ewk_view_bg_color_set to set background color as black
for web apps.

Background color is set as black only for watchfaces.
Hence default bg color for web apps is white.

[Reference] http://slp-info.sec.samsung.net/gerrit/#/c/3106551

Change-Id: Iec328524219b009701e394aa71bb8cb588e8378b
Signed-off-by: Guneet K <g.khosla@samsung.com>
runtime/browser/web_application.cc

index 27ff04c..8838e50 100755 (executable)
@@ -584,10 +584,9 @@ void WebApplication::Launch(std::unique_ptr<common::AppControl> appcontrol) {
   }
 
   // ewk_view_bg_color_set is not working at webview initialization.
-  // if (common::getProfile() == common::kPROFILE_WEARABLE &&
-  //    app_data_->app_type() == common::ApplicationData::WATCH) {
-  view->SetBGColor(0, 0, 0, 255);
-  //}
+  if (common::getProfile() == common::kPROFILE_WEARABLE) {
+    view->SetBGColor(0, 0, 0, 255);
+  }
 
   if (appcontrol->data(AUL_K_DEBUG) == "1") {
     debug_mode_ = true;