[sword-svn] r3578 - trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/android
scribe at crosswire.org
scribe at crosswire.org
Sun Mar 25 20:56:51 MST 2018
Author: scribe
Date: 2018-03-25 20:56:50 -0700 (Sun, 25 Mar 2018)
New Revision: 3578
Modified:
trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/android/SWORD.java
Log:
Changed JSONArray to use an older c-tor for backward compat
Modified: trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/android/SWORD.java
===================================================================
--- trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/android/SWORD.java 2018-03-25 22:59:00 UTC (rev 3577)
+++ trunk/bindings/cordova/org.crosswire.sword.cordova.SWORD/src/android/SWORD.java 2018-03-26 03:56:50 UTC (rev 3578)
@@ -22,6 +22,7 @@
import java.util.Vector;
import java.util.Map;
import java.util.HashMap;
+import java.util.Arrays;
import java.io.BufferedReader;
import java.io.DataOutputStream;
@@ -139,7 +140,7 @@
m.put("version", mi.version);
m.put("delta", mi.delta);
m.put("cipherKey", mi.cipherKey);
- m.put("features", new JSONArray(mi.features));
+ m.put("features", new JSONArray(Arrays.asList(mi.features)));
r.put(m);
}
callbackContext.success(r);
@@ -244,7 +245,7 @@
m.put("version", mi.version);
m.put("delta", mi.delta);
m.put("cipherKey", mi.cipherKey);
- m.put("features", new JSONArray(mi.features));
+ m.put("features", new JSONArray(Arrays.asList(mi.features)));
r.put(m);
}
callbackContext.success(r);
More information about the sword-cvs
mailing list