Skip to content

Commit

Permalink
PlatformChannel: Do not quit app from SystemNavigatorPop unless it is…
Browse files Browse the repository at this point in the history
… window (#306)

When user input Back key in tizen view, if there are no more back element,
the app is closed. this prevent it.
  • Loading branch information
JSUYA authored Jul 4, 2022
1 parent 4901d94 commit 8642852
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shell/platform/tizen/channels/platform_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8642852

Please sign in to comment.