[NFC] Fix isActivatedHandlerFunctions return values 19/173719/2
authorRafal Walczyna <r.walczyna@partner.samsung.com>
Fri, 23 Mar 2018 10:05:05 +0000 (11:05 +0100)
committerRafal Walczyna <r.walczyna@partner.samsung.com>
Fri, 23 Mar 2018 10:11:14 +0000 (11:11 +0100)
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 <r.walczyna@partner.samsung.com>
src/nfc/nfc_adapter.cc

index 874fa6ef5966137c677cf931808c2a74cf79157e..3a6f9ebfe5ff1e489d61976ae16a506b652eb3fa 100644 (file)
@@ -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;
   }