mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
This commit is contained in:
commit
8451133d00
@ -1166,7 +1166,7 @@ public class ContactAccessorSdk5 extends ContactAccessor {
|
|||||||
// Modify urls
|
// Modify urls
|
||||||
JSONArray websites = null;
|
JSONArray websites = null;
|
||||||
try {
|
try {
|
||||||
websites = contact.getJSONArray("websites");
|
websites = contact.getJSONArray("urls");
|
||||||
if (websites != null) {
|
if (websites != null) {
|
||||||
for (int i=0; i<websites.length(); i++) {
|
for (int i=0; i<websites.length(); i++) {
|
||||||
JSONObject website = (JSONObject)websites.get(i);
|
JSONObject website = (JSONObject)websites.get(i);
|
||||||
|
@ -80,7 +80,7 @@ public class PluginResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getJSONString() {
|
public String getJSONString() {
|
||||||
return "{status:" + this.status + ",message:" + this.message + ",keepCallback:" + this.keepCallback + "}";
|
return "{\"status\":" + this.status + ",\"message\":" + this.message + ",\"keepCallback\":" + this.keepCallback + "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toSuccessCallbackString(String callbackId) {
|
public String toSuccessCallbackString(String callbackId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user