mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Add quotes when returning status message.
This commit is contained in:
parent
153d42f693
commit
f63b8140af
@ -16,7 +16,7 @@ public class PluginResult {
|
||||
|
||||
public PluginResult(Status status) {
|
||||
this.status = status.ordinal();
|
||||
this.message = PluginResult.StatusMessages[this.status];
|
||||
this.message = "'" + PluginResult.StatusMessages[this.status] + "'";
|
||||
}
|
||||
|
||||
public PluginResult(Status status, String message) {
|
||||
@ -58,7 +58,7 @@ public class PluginResult {
|
||||
}
|
||||
|
||||
public String getJSONString() {
|
||||
return "{ status: " + this.getStatus() + ", message: '" + this.getMessage() + "' }";
|
||||
return "{ status: " + this.getStatus() + ", message: " + this.getMessage() + " }";
|
||||
}
|
||||
|
||||
public String toSuccessCallbackString(String callbackId) {
|
||||
|
Loading…
Reference in New Issue
Block a user