Don't display splash screen in background mode 30/247830/3
authorjaekuk, lee <juku1999@samsung.com>
Tue, 17 Nov 2020 08:52:55 +0000 (17:52 +0900)
committerjaekuk lee <juku1999@samsung.com>
Tue, 17 Nov 2020 23:14:53 +0000 (23:14 +0000)
When launching app in backgroundAtStartup launchMode,
prevent splash screen from being displayed.

Change-Id: I416fce778e5a001df5a6da855959c88d42ac19f4
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
wrt_app/src/web_application.ts [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 430a593..8888289
@@ -285,7 +285,7 @@ export class WebApplication {
     this.suspended = false;
     if (this.showTimer)
       clearTimeout(this.showTimer);
-    let splashShown = firstLaunch && wrt.showSplashScreen();
+    let splashShown = this.preloadStatus !== 'preload' && firstLaunch && wrt.showSplashScreen();
     if (!splashShown && !wrt.tv) {
       this.showTimer = setTimeout(() => {
         if (!this.suspended) {