escape url
This commit is contained in:
@@ -282,10 +282,18 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
|
|
||||||
private String buildZoomURL(String confno, String pwd, String name, String attendees) {
|
private String buildZoomURL(String confno, String pwd, String name, String attendees) {
|
||||||
|
Uri.Builder builder = new Uri.Builder();
|
||||||
|
builder.scheme("zoomus")
|
||||||
|
.authority("zoom.us")
|
||||||
|
.appendPath("join")
|
||||||
|
.appendQueryParameter("confno",confno.replace(" ", ""))
|
||||||
|
.appendQueryParameter("pwd", pwd);
|
||||||
|
|
||||||
if (!Objects.equals(attendees, "")) {
|
if (!Objects.equals(attendees, "")) {
|
||||||
return "zoomus://zoom.us/join?confno=" + confno.replace(" ", "") + "&pwd=" + pwd + "&uname=" + name + " (" + attendees + ")";
|
builder.appendQueryParameter("uname", name + " (" + attendees + ")");
|
||||||
} else
|
} else
|
||||||
return "zoomus://zoom.us/join?confno=" + confno.replace(" ", "") + "&pwd=" + pwd + "&uname=" + name;
|
builder.appendQueryParameter("uname", name);
|
||||||
|
return builder.build().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String meetingsToString(ArrayList<Meeting> listMeetings) {
|
public String meetingsToString(ArrayList<Meeting> listMeetings) {
|
||||||
@@ -508,6 +516,7 @@ class Meeting implements Serializable {
|
|||||||
addAttendee(name, num);
|
addAttendee(name, num);
|
||||||
} else {
|
} else {
|
||||||
this.attendees.get(found).num = num;
|
this.attendees.get(found).num = num;
|
||||||
|
this.lastAtt = found;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user