Revert "Remove redundant Window hide on suspend as it is handled by platform" 60/200460/1 accepted/tizen/unified/20190307.230853 submit/tizen/20190225.110932
authorSangYong Park <sy302.park@samsung.com>
Mon, 25 Feb 2019 07:48:15 +0000 (16:48 +0900)
committerSangYong Park <sy302.park@samsung.com>
Mon, 25 Feb 2019 09:02:24 +0000 (18:02 +0900)
This reverts commit 19f4f4582873db8c7b0067896dd0c8d31e3f23e4.

Change-Id: I01cdf798364fe286ba29a17a042e6744aecf9994
Signed-off-by: SangYong Park <sy302.park@samsung.com>
wrt_app/src/web_application.js

index 8c04e1b..e3cf6da 100755 (executable)
@@ -86,22 +86,22 @@ class WebApplication {
     }
     suspend() {
         console.log('WebApplication : suspend');
-        if (!this.backgroundSupport) {
-            BrowserWindow.getAllWindows().forEach((window) => {
+        BrowserWindow.getAllWindows().forEach((window) => {
+            window.hide();
+            if (!this.backgroundSupport)
                 window.setEnabled(false);
-            });
-        }
+        });
     }
     resume() {
         console.log('WebApplication : resume');
         if (!this.firstRendered) {
             return;
         }
-        if (!this.backgroundSupport) {
-            BrowserWindow.getAllWindows().forEach((window) => {
+        BrowserWindow.getAllWindows().forEach((window) => {
+            window.show();
+            if (!this.backgroundSupport)
                 window.setEnabled(true);
-            });
-        }
+        });
     }
 }
 module.exports = WebApplication;