mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
fix #453
This commit is contained in:
parent
82885102d9
commit
f3d6566332
@ -161,7 +161,7 @@ public class DirectThreadBroadcaster extends AsyncTask<DirectThreadBroadcaster.B
|
|||||||
public TextBroadcastOptions(String text) throws UnsupportedEncodingException {
|
public TextBroadcastOptions(String text) throws UnsupportedEncodingException {
|
||||||
super(ItemType.TEXT);
|
super(ItemType.TEXT);
|
||||||
this.text = URLEncoder.encode(text, "UTF-8")
|
this.text = URLEncoder.encode(text, "UTF-8")
|
||||||
.replaceAll("\\+", "%20").replaceAll("%21", "!").replaceAll("%27", "'")
|
.replaceAll("\\+", "%20").replaceAll("%21", "!").replaceAll("%27", "'").replaceAll("%22", "\\\"")
|
||||||
.replaceAll("%28", "(").replaceAll("%29", ")").replaceAll("%7E", "~").replaceAll("%0A", "\n");
|
.replaceAll("%28", "(").replaceAll("%29", ")").replaceAll("%7E", "~").replaceAll("%0A", "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,8 +234,8 @@ public class DirectThreadBroadcaster extends AsyncTask<DirectThreadBroadcaster.B
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static class DirectThreadBroadcastResponse {
|
public static class DirectThreadBroadcastResponse {
|
||||||
private int responseCode;
|
private final int responseCode;
|
||||||
private JSONObject response;
|
private final JSONObject response;
|
||||||
|
|
||||||
public DirectThreadBroadcastResponse(int responseCode, JSONObject response) {
|
public DirectThreadBroadcastResponse(int responseCode, JSONObject response) {
|
||||||
this.responseCode = responseCode;
|
this.responseCode = responseCode;
|
||||||
|
Loading…
Reference in New Issue
Block a user