Revert "[HOTFIX] Fix crash on closing application from task manager" 94/190894/1
authorPrathmesh Manurkar <prathmesh.m@samsung.com>
Mon, 8 Oct 2018 10:05:10 +0000 (10:05 +0000)
committerPrathmesh Manurkar <prathmesh.m@samsung.com>
Mon, 8 Oct 2018 10:05:10 +0000 (10:05 +0000)
This reverts commit c114c332d1275faaea3bec7d488a86923229061a.

Change-Id: I7274dcdfb50fe433343ffd0bd81e938694b4ab25

runtime/browser/ui_runtime.cc
runtime/browser/web_application.cc
runtime/browser/web_application.h

index e549c0235e1152ede00b02adfdfe8467e0e8353a..45a465a143e29ffbc7c8740f003fd0fd5de95eb0 100755 (executable)
@@ -156,8 +156,6 @@ bool UiRuntime::OnCreate() {
 }
 
 void UiRuntime::OnTerminate() {
-  if (application_)
-    application_->SimulateBackKeyClosing();
 }
 
 void UiRuntime::Terminate() {
index 38bb911032c0c2a69e122b13f18eb60587072427..43be4fb11123690365e6b0ca7510789f9c049ead 100755 (executable)
@@ -1047,12 +1047,6 @@ void WebApplication::OnHardwareKey(WebView* view, const std::string& keyname) {
   }
 }
 
-void WebApplication::SimulateBackKeyClosing() {
-  window_->InActive();
-  while (view_stack_.size())
-    OnHardwareKey(view_stack_.front(), kKeyNameBack);
-}
-
 void WebApplication::OnLanguageChanged() {
   lang_changed_mode_ = true;
   locale_manager_->UpdateSystemLocale();
index a54208b75b3b0f4bcb6ea9ac4db2c0ed87005c17..5b247b22baf3fc7c0da03d0b965d08550426d657 100755 (executable)
@@ -116,7 +116,6 @@ class WebApplication : public WebView::EventListener {
     WebApplication* application;
     Ecore_Timer* timer;
   } main_loop, session_counter;
-  void SimulateBackKeyClosing();
 
  private:
   bool Initialize();