From ec3568f29783aace4f90a773ffbd2fcc220be57a Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Fri, 1 Jul 2022 17:00:46 +0900 Subject: [PATCH] PlatformChannel: Do not quit app from SystemNavigatorPop unless it is window When user input Back key in tizen view, if there are no more back element, the app is closed. this prevent it. --- shell/platform/tizen/channels/platform_channel.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/platform/tizen/channels/platform_channel.cc b/shell/platform/tizen/channels/platform_channel.cc index 5672bd73ef908..263108f214a3f 100644 --- a/shell/platform/tizen/channels/platform_channel.cc +++ b/shell/platform/tizen/channels/platform_channel.cc @@ -148,7 +148,9 @@ void PlatformChannel::HandleMethodCall( } void PlatformChannel::SystemNavigatorPop() { - ui_app_exit(); + if (window_) { + ui_app_exit(); + } } void PlatformChannel::PlaySystemSound(const std::string& sound_type) {