parent
8107def798
commit
9e50901664
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue