Set background color as black for wearable web apps 83/169283/1
authorGuneet K <g.khosla@samsung.com>
Mon, 5 Feb 2018 06:08:58 +0000 (11:38 +0530)
committerGuneet K <g.khosla@samsung.com>
Mon, 5 Feb 2018 06:39:22 +0000 (12:09 +0530)
[Model] COMMON
[BinType] AP
[Customer]

[Issue#] P170609-03650
[Request] N/A
[Occurrence Version] DayR765AUC_20170607.002

[Problem] White background displayed for KA Stock App instead of
          black background
[Cause & Measure] Cause: Background color is set as black only for
                  watchfaces. Hence default bg color for web apps is
                  white
                  Measure: Call ewk_view_bg_color_set to set background
                  color as black for web apps

[Checking Method] 1. Build and install crosswalk-tizen rpm
                  2. Install KA Stock web app
                  3. Background color of web app should be black

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

index 014e882..27ff04c 100755 (executable)
@@ -584,10 +584,10 @@ 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 &&
+  //    app_data_->app_type() == common::ApplicationData::WATCH) {
+  view->SetBGColor(0, 0, 0, 255);
+  //}
 
   if (appcontrol->data(AUL_K_DEBUG) == "1") {
     debug_mode_ = true;