[WRTjs][VD] Hide early if app is visible when termination 19/306019/3
authorDongHyun Song <dh81.song@samsung.com>
Thu, 15 Feb 2024 06:52:01 +0000 (15:52 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Thu, 15 Feb 2024 07:15:17 +0000 (07:15 +0000)
If an application is terminated by 3rd party when app is visible,
black screen or abnormal last frame can be observerable for a moment.
So, this patch will hide the window early while closing window.

Change-Id: Ied14bdd3f40891c9695b1ef89250f4bd7010d8f1
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt/src/browser/tv/wrt_native_window_tv.cc

index 88b3ec5..afadb7c 100644 (file)
@@ -414,6 +414,10 @@ void WRTNativeWindowTV::Finalize() {
 
 void WRTNativeWindowTV::CloseImmediately() {
   if (is_main_native_window_) {
+    if ("visible" == visibility_state_) {
+      LOG(INFO) << "window will be lower before close";
+      LowerWindow();
+    }
 #if defined(TIZEN_PEPPER_EXTENSIONS)
     UnregisterPepperExtensionDelegate();
 #endif