Commit 9e509016 authored by Schoumi's avatar Schoumi

Fix missing / at end of url

Fixes #2
parent 8107def7
......@@ -67,6 +67,10 @@ public class ServerDialog extends DialogFragment {
EditText urlText = (EditText) view.findViewById(R.id.url_text);
if(urlText.getText().length() > 0)
url += urlText.getText();
else
return;
if(!url.endsWith("/"))
url += "/";
//add server to database
DatabaseManager.getInstance(getActivity().getApplicationContext()).addServer(url);
listener.updateServerList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment