Skip to content
Snippets Groups Projects
Commit a29f487c authored by Volker Richert's avatar Volker Richert
Browse files

don't add path & query

parent e668c19f
No related branches found
No related tags found
No related merge requests found
...@@ -167,9 +167,6 @@ public class SettingsFragment extends PreferenceFragment implements OnSharedPref ...@@ -167,9 +167,6 @@ public class SettingsFragment extends PreferenceFragment implements OnSharedPref
.append("://").append(uri.getHost()); .append("://").append(uri.getHost());
if (uri.getPort() > -1) if (uri.getPort() > -1)
url.append(":").append(uri.getPort()); url.append(":").append(uri.getPort());
url.append(uri.getPath());
if (uri.getQuery() != null)
url.append("?").append(uri.getQuery());
EditTextPreference editPref = (EditTextPreference) findPreference(getString(R.string.preference_nightscout_url)); EditTextPreference editPref = (EditTextPreference) findPreference(getString(R.string.preference_nightscout_url));
editPref.setText(url.toString()); editPref.setText(url.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment