[nfc] remove to get nfc_status information when successes NFC settings appcontrol 59/93559/1
authorHyunjin Park <hj.na.park@samsung.com>
Tue, 25 Oct 2016 02:32:50 +0000 (11:32 +0900)
committerHyunjin Park <hj.na.park@samsung.com>
Tue, 25 Oct 2016 02:32:50 +0000 (11:32 +0900)
cause : it calls failure callback when successes

[Verification] Web TCT- NFC 100% passed

Change-Id: I1ae44f92d25a2d43f97b1629189e7562feedb447

src/nfc/nfc_adapter.cc

index 45c79ad..62fe2a6 100644 (file)
@@ -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<double*>(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;