[VD]Show window for preload app in deeplink scenario 10/272110/2
authorzhaosy <shiyusy.zhao@samsung.com>
Wed, 9 Mar 2022 08:46:28 +0000 (16:46 +0800)
committerzhaosy <shiyusy.zhao@samsung.com>
Thu, 10 Mar 2022 05:54:32 +0000 (13:54 +0800)
If app is preload, and then deeplink launch it, doesn't
call show window, so app is not showing in foreground.

Change-Id: Ib5bfd9e8ba1c9de97a817163f81148622000228c
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
wrt_app/src/tv/web_application_tv.ts

index eeaaae5eaf19906a3b5766f11eac9574e813827d..0ef634b8c6a3978826344395bf60eedb6f3ac9ff 100644 (file)
@@ -231,6 +231,9 @@ Then you can get profile log from the initial loading.`;
       this.webApplication.sendAppControlEvent();
       return false;
     } else {
+      if (!this.webApplication.mainWindow.isVisible())
+        this.webApplication.show();
+
       let skipReload = appControl.getData('SkipReload');
       if (skipReload == 'Yes') {
         console.log('skipping reload');