From 1cefc78f8728846e36e5186704aad24ddad9984b Mon Sep 17 00:00:00 2001 From: Prathmesh Manurkar Date: Mon, 8 Oct 2018 10:05:10 +0000 Subject: [PATCH] Revert "[HOTFIX] Fix crash on closing application from task manager" This reverts commit c114c332d1275faaea3bec7d488a86923229061a. Change-Id: I7274dcdfb50fe433343ffd0bd81e938694b4ab25 --- runtime/browser/ui_runtime.cc | 2 -- runtime/browser/web_application.cc | 6 ------ runtime/browser/web_application.h | 1 - 3 files changed, 9 deletions(-) diff --git a/runtime/browser/ui_runtime.cc b/runtime/browser/ui_runtime.cc index e549c0235..45a465a14 100755 --- a/runtime/browser/ui_runtime.cc +++ b/runtime/browser/ui_runtime.cc @@ -156,8 +156,6 @@ bool UiRuntime::OnCreate() { } void UiRuntime::OnTerminate() { - if (application_) - application_->SimulateBackKeyClosing(); } void UiRuntime::Terminate() { diff --git a/runtime/browser/web_application.cc b/runtime/browser/web_application.cc index 38bb91103..43be4fb11 100755 --- a/runtime/browser/web_application.cc +++ b/runtime/browser/web_application.cc @@ -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(); diff --git a/runtime/browser/web_application.h b/runtime/browser/web_application.h index a54208b75..5b247b22b 100755 --- a/runtime/browser/web_application.h +++ b/runtime/browser/web_application.h @@ -116,7 +116,6 @@ class WebApplication : public WebView::EventListener { WebApplication* application; Ecore_Timer* timer; } main_loop, session_counter; - void SimulateBackKeyClosing(); private: bool Initialize(); -- 2.34.1