From: Habib Virji Date: Thu, 1 Dec 2016 12:01:43 +0000 (+0000) Subject: Fix Android SetPropertyValue function call X-Git-Tag: 1.2.1~4 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fiotivity.git;a=commitdiff_plain;h=c54aaa1f7de9227236cb8f023df99209c6dddb64 Fix Android SetPropertyValue function call setPropertyValue call in the Android was swapped, compared to function call how it was in the JNI layer. setPropertyValue0 is for passing string array and setPropertyValue1 is passing string. Change-Id: I91c480f162cc53712a68bef078371559fd2eff21 Signed-off-by: Habib Virji Reviewed-on: https://gerrit.iotivity.org/gerrit/15025 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval Reviewed-by: Uze Choi --- diff --git a/android/android_api/base/src/main/java/org/iotivity/base/OcPlatform.java b/android/android_api/base/src/main/java/org/iotivity/base/OcPlatform.java index 539a3fd..89e7fae 100644 --- a/android/android_api/base/src/main/java/org/iotivity/base/OcPlatform.java +++ b/android/android_api/base/src/main/java/org/iotivity/base/OcPlatform.java @@ -570,13 +570,13 @@ public final class OcPlatform { public static void setPropertyValue( int path, String propName, String propValue) throws OcException { OcPlatform.initCheck(); - OcPlatform.setPropertyValue0(path, propName, propValue); + OcPlatform.setPropertyValue1(path, propName, propValue); } public static void setPropertyValue( int path, String propName, List propValue) throws OcException { OcPlatform.initCheck(); - OcPlatform.setPropertyValue1(path, propName, propValue.toArray(new String[propValue.size()])); + OcPlatform.setPropertyValue0(path, propName, propValue.toArray(new String[propValue.size()])); } public static void getPropertyValue( @@ -585,14 +585,14 @@ public final class OcPlatform { OcPlatform.getPropertyValue0(path, propName, propValue); } - private static native void setPropertyValue0( + private static native void setPropertyValue1( int path, String propName, String propValue ) throws OcException; - private static native void setPropertyValue1( + private static native void setPropertyValue0( int path, String propName, String[] propValue