Show window after launch for remote URL 17/105117/1 accepted/tizen/3.0/common/20161216.123828 accepted/tizen/3.0/ivi/20161216.020032 accepted/tizen/3.0/mobile/20161216.015935 accepted/tizen/3.0/tv/20161216.015953 accepted/tizen/3.0/wearable/20161216.020012 submit/tizen_3.0/20161215.120724
authorjaekuk, lee <juku1999@samsung.com>
Thu, 15 Dec 2016 12:03:48 +0000 (21:03 +0900)
committerjaekuk, lee <juku1999@samsung.com>
Thu, 15 Dec 2016 12:03:48 +0000 (21:03 +0900)
Change-Id: I7ab95b4f88c63c9dc1d1becfa9d07971a2b229c8
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
runtime/browser/web_application.cc

index 59b8611..eb72425 100755 (executable)
@@ -444,6 +444,14 @@ void WebApplication::Launch(std::unique_ptr<common::AppControl> appcontrol) {
   }
 
   launched_ = true;
+
+#ifdef PROFILE_MOBILE
+  if (!common::utils::StartsWith(view->GetUrl(), kFileScheme)) {
+    LOGGER(DEBUG) << "Show window after launch for remote URL";
+    window_->Show();
+    window_->Active();
+  }
+#endif  // PROFILE_MOBILE
 }
 
 void WebApplication::AppControl(
@@ -866,7 +874,7 @@ void WebApplication::OnLoadFinished(WebView* /*view*/) {
   splash_screen_->HideSplashScreen(SplashScreen::HideReason::LOADFINISHED);
 }
 
-void WebApplication::OnRendered(WebView* /*view*/) {
+void WebApplication::OnRendered(WebView* view) {
   STEP_PROFILE_END("URL Set -> Rendered");
   STEP_PROFILE_END("Start -> Launch Completed");
   LOGGER(DEBUG) << "Rendered";
@@ -875,8 +883,15 @@ void WebApplication::OnRendered(WebView* /*view*/) {
   // Do not show(), active() for language change
   if(lang_changed_mode_ == false){
       // Show window after frame rendered.
+#ifdef PROFILE_MOBILE
+      if (common::utils::StartsWith(view->GetUrl(), kFileScheme)) {
+        window_->Show();
+        window_->Active();
+      }
+#else  // PROFILE_MOBILE
       window_->Show();
       window_->Active();
+#endif
   }
   else{
       lang_changed_mode_ = false;