Browse Source

Fix missing / at end of url

Fixes #2
tags/release-v1.2
Schoumi 2 years ago
parent
commit
9e50901664
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      app/src/main/java/fr/mobdev/lpcprog/dialog/ServerDialog.java

+ 4
- 0
app/src/main/java/fr/mobdev/lpcprog/dialog/ServerDialog.java View File

@@ -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…
Cancel
Save