From: Hyunjin Park Date: Tue, 25 Oct 2016 02:32:50 +0000 (+0900) Subject: [nfc] remove to get nfc_status information when successes NFC settings appcontrol X-Git-Tag: submit/tizen/20161026.090018~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F93559%2F1;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [nfc] remove to get nfc_status information when successes NFC settings appcontrol cause : it calls failure callback when successes [Verification] Web TCT- NFC 100% passed Change-Id: I1ae44f92d25a2d43f97b1629189e7562feedb447 --- diff --git a/src/nfc/nfc_adapter.cc b/src/nfc/nfc_adapter.cc index 45c79ad0..62fe2a61 100644 --- a/src/nfc/nfc_adapter.cc +++ b/src/nfc/nfc_adapter.cc @@ -368,17 +368,7 @@ PlatformResult NFCAdapter::SetPowered(const picojson::value& args) { ret = app_control_send_launch_request(service, [](app_control_h request, app_control_h reply, app_control_result_e result, void* user_data) { double* callbackId = static_cast(user_data); - if (result == APP_CONTROL_RESULT_SUCCEEDED) { - char* type = NULL; - int ret = app_control_get_extra_data(reply, "nfc_status", - &type); - if (ret != APP_CONTROL_ERROR_NONE) { - LoggerE("app_control_get_extra_data failed: %d", ret); - PostMessage(callbackId); - return; - } - LoggerD("app_control result: %s", type); - } else { + if (result != APP_CONTROL_RESULT_SUCCEEDED) { LoggerE("NFC enable app control failed : %d", result); PostMessage(callbackId); return;