From 3e30287d33646f7ceee6e5bc2df6421bd45b455f Mon Sep 17 00:00:00 2001 From: Guneet K Date: Mon, 5 Feb 2018 11:38:58 +0530 Subject: [PATCH] Set background color as black for wearable web apps Background color is set as black only for watchfaces. Hence default bg color for web apps is white. Call ewk_view_bg_color_set to set background color as black for web apps. Change-Id: I50f8c24f9f735ebb0ef24f49d9e8a1ebdbb11999 Signed-off-by: Guneet K --- runtime/browser/web_application.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/runtime/browser/web_application.cc b/runtime/browser/web_application.cc index 4a8434d9f..7a51b7be8 100755 --- a/runtime/browser/web_application.cc +++ b/runtime/browser/web_application.cc @@ -565,10 +565,7 @@ void WebApplication::Launch(std::unique_ptr appcontrol) { vc_webview_->vc_webview_set_view(view->evas_object()); // 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); - } + view->SetBGColor(0, 0, 0, 255); if (appcontrol->data(AUL_K_DEBUG) == "1") { debug_mode_ = true; -- 2.34.1