Skip to content

Commit

Permalink
Fix bugs in the app_control channel (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim authored Sep 9, 2021
1 parent 088466b commit 657629d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions shell/platform/tizen/channels/app_control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ AppControlResult AppControl::SendLaunchRequestWithReply(
} else if (result == APP_CONTROL_RESULT_FAILED) {
map[EncodableValue("result")] = EncodableValue("failed");
} else if (result == APP_CONTROL_RESULT_CANCELED) {
map[EncodableValue("result")] = EncodableValue("cancelled");
map[EncodableValue("result")] = EncodableValue("canceled");
}

app_control->reply_sink_->Success(EncodableValue(map));
Expand All @@ -275,7 +275,7 @@ AppControlResult AppControl::Reply(std::shared_ptr<AppControl> reply,
result_e = APP_CONTROL_RESULT_SUCCEEDED;
} else if (result == "failed") {
result_e = APP_CONTROL_RESULT_FAILED;
} else if (result == "cancelled") {
} else if (result == "canceled") {
result_e = APP_CONTROL_RESULT_CANCELED;
} else {
return AppControlResult(APP_CONTROL_ERROR_INVALID_PARAMETER);
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/tizen/channels/app_control_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void AppControlChannel::Reply(
result->Error("Could not reply", "Invalid result parameter");
return;
}
AppControlResult ret = app_control->Reply(request_app_control, *result_str);
AppControlResult ret = request_app_control->Reply(app_control, *result_str);
if (ret) {
result->Success();
} else {
Expand Down

0 comments on commit 657629d

Please sign in to comment.