Skip to content

Commit 8642852

Browse files
authored
PlatformChannel: Do not quit app from SystemNavigatorPop unless it is window (#306)
When user input Back key in tizen view, if there are no more back element, the app is closed. this prevent it.
1 parent 4901d94 commit 8642852

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shell/platform/tizen/channels/platform_channel.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ void PlatformChannel::HandleMethodCall(
148148
}
149149

150150
void PlatformChannel::SystemNavigatorPop() {
151-
ui_app_exit();
151+
if (window_) {
152+
ui_app_exit();
153+
}
152154
}
153155

154156
void PlatformChannel::PlaySystemSound(const std::string& sound_type) {

0 commit comments

Comments
 (0)