From 0d9c8ef58ca6a05266095b1fc808b83dd772ff74 Mon Sep 17 00:00:00 2001 From: jaekuk lee Date: Tue, 31 Dec 2019 09:15:52 +0000 Subject: [PATCH] Revert "Revert "Set default background color for product wearable."" This reverts commit 79bf5d968f1bfc7de05086cd78280759cb1e2265. Change the default background color to black for app compatibility. For app that has white text and icons and uses the default background color of target, text and icons should be displayed normally on tw2 and tw3 with the default background color set to black. Change-Id: I7ac040d6ebcb1270562d55b9cddaa7d5ade6784c Signed-off-by: jaekuk, lee --- wrt_app/src/web_application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js index 38efdab..624d60a 100644 --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -50,7 +50,8 @@ class WebApplication { this.accessiblePath = (wrt.tv ? wrt.tv.getAccessiblePath() : null); this.isAlwaysReload = (wrt.tv ? wrt.tv.isAlwaysReload() : false); this.multitaskingSupport = (wrt.tv ? wrt.tv.getMultitaskingSupport() : true); - this.defaultBackgroundColor = (wrt.tv ? '#000' : '#FFF'); + this.defaultBackgroundColor = (wrt.tv + || (wrt.getPlatformType() === "product_wearable") ? '#000' : '#FFF'); this.defaultTransparent = (wrt.tv ? true : false); this.suspended = false; this.loadFinished = false; -- 2.7.4