From: Rafal Walczyna Date: Fri, 23 Mar 2018 10:05:05 +0000 (+0100) Subject: [NFC] Fix isActivatedHandlerFunctions return values X-Git-Tag: submit/tizen_4.0/20180323.180729~1^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a93036c33ec14f521c52e9a42eed6db488c79c6;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [NFC] Fix isActivatedHandlerFunctions return values Functions IsActivatedHandlerForCategory and IsActivatedHandlerForAID always return false. After fix they work properly. TCT tests needs fixing, after fix there will be 100% passrate. Tested on TW1 tizen3.0 Change-Id: I9a4833d4073e512e9414e63325515ebfa8d6b8a4 Signed-off-by: Rafal Walczyna --- diff --git a/src/nfc/nfc_adapter.cc b/src/nfc/nfc_adapter.cc index 874fa6ef..3a6f9ebf 100644 --- a/src/nfc/nfc_adapter.cc +++ b/src/nfc/nfc_adapter.cc @@ -1385,7 +1385,7 @@ PlatformResult NFCAdapter::IsActivatedHandlerForAID(const std::string& type, con nfc_se_type_e se_type; PlatformResult result = NFCUtil::ToSecureElementType(type, &se_type); - if (!result.IsError()) { + if (result.IsError()) { LoggerE("Error: %s", result.message().c_str()); return result; } @@ -1406,7 +1406,7 @@ PlatformResult NFCAdapter::IsActivatedHandlerForCategory( nfc_se_type_e se_type; PlatformResult result = NFCUtil::ToSecureElementType(type, &se_type); - if (!result.IsError()) { + if (result.IsError()) { LoggerE("Error: %s", result.message().c_str()); return result; }