Show window on frame rendered after appcontrol reset 87/182287/1
authorPrathmesh <prathmesh.m@samsung.com>
Fri, 22 Jun 2018 04:30:03 +0000 (10:00 +0530)
committerPrathmesh <prathmesh.m@samsung.com>
Fri, 22 Jun 2018 04:30:03 +0000 (10:00 +0530)
- Currently window is shown after reset once appcontrol
  is received. Due to this sometimes old contents are
  visible first then new contents are rendered
- If the app is reset on app-control then do show the
  window right away. Rather the window will be shown
  once frame rendered is received

Change-Id: Ice201a6c6ff35430186abcad917af767fb1ccdaf
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
runtime/browser/web_application.cc

index 9039ca7244952404dde88395b6f80c515d5e0b75..e9c9c336292eed3c4b21428fd920e5b80ede65a6 100755 (executable)
@@ -626,7 +626,11 @@ void WebApplication::AppControl(
   if (!verbose_mode_ && appcontrol->data(kVerboseKey) == "true") {
     verbose_mode_ = true;
   }
-  window_->Active();
+
+  // If app was reset then show window after new frame
+  //   is rendered. Else old page will be displayed
+  if (!do_reset)
+    window_->Active();
 }
 
 void WebApplication::SendAppControlEvent() {