From df85539fc6497c42af8f2d50a0bcbca87e1b9084 Mon Sep 17 00:00:00 2001 From: Hyunjin Park Date: Tue, 25 Oct 2016 11:32:50 +0900 Subject: [PATCH] [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 --- src/nfc/nfc_adapter.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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; -- 2.34.1