mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 23:42:53 +08:00
Modify PluginResult(status) so it generates a JSON string that works with JSON.parse()
This commit is contained in:
parent
eb0348d47c
commit
401c2f42f9
@ -29,7 +29,7 @@ public class PluginResult {
|
|||||||
|
|
||||||
public PluginResult(Status status) {
|
public PluginResult(Status status) {
|
||||||
this.status = status.ordinal();
|
this.status = status.ordinal();
|
||||||
this.message = "'" + PluginResult.StatusMessages[this.status] + "'";
|
this.message = "\"" + PluginResult.StatusMessages[this.status] + "\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginResult(Status status, String message) {
|
public PluginResult(Status status, String message) {
|
||||||
|
Loading…
Reference in New Issue
Block a user