Set |is_window_inactive| to false when |do_reset| is true. 78/187778/1 accepted/tizen/4.0/unified/20181122.160730 submit/tizen_4.0/20180910.052046 submit/tizen_4.0/20181121.082159 submit/tizen_4.0/20181122.042541
authorguneet khosla <g.khosla@samsung.com>
Tue, 28 Aug 2018 08:50:18 +0000 (14:20 +0530)
committerguneet khosla <g.khosla@samsung.com>
Tue, 28 Aug 2018 08:58:37 +0000 (14:28 +0530)
|is_window_inactive| is set to false when |do_reset|
is true so as to call window_->Show() and
window_->Active() in onRendered().Hence a suspended
application is showed and resumed.

Change-Id: Id9b0b0c6805a8f3bb5c40c4c7dc0e95d78fc646c
Signed-off-by: guneet khosla <g.khosla@samsung.com>
runtime/browser/web_application.cc

index 8fa1049889f0e3fab769c9c9994cfcf368dafa34..cff30b981d3a35367885275d822d8a188820ee38 100755 (executable)
@@ -662,8 +662,11 @@ void WebApplication::AppControl(
   if (!verbose_mode_ && appcontrol->data(kVerboseKey) == "true") {
     verbose_mode_ = true;
   }
-  if (!do_reset)
+  if (!do_reset){
     window_->Active();
+  } else {
+    is_window_inactive_ = false;
+  }
 }
 
 void WebApplication::SendAppControlEvent() {