Revert "Revert "Set default background color for product wearable."" 45/221345/4
authorjaekuk lee <juku1999@samsung.com>
Tue, 31 Dec 2019 09:15:52 +0000 (09:15 +0000)
committerjaekuk, lee <juku1999@samsung.com>
Tue, 7 Jan 2020 07:55:04 +0000 (23:55 -0800)
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 <juku1999@samsung.com>
wrt_app/src/web_application.js

index 38efdabdbe7a31027883bdf5573795d974356443..624d60ac39614ca217cb160ed41b0660f6ca4104 100644 (file)
@@ -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;