diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-05 17:56:58 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-05 17:56:58 +1300 |
commit | a723029b89df295405632d3735c26c12bb173583 (patch) | |
tree | b6d2e4057970dd74aeb0eda38ee7f3ea1cc1dc56 | |
parent | 3dc5246e5f8d38f2e13409a337ef706476a70eb6 (diff) | |
download | etbsa-traccar-manager-android-a723029b89df295405632d3735c26c12bb173583.tar.gz etbsa-traccar-manager-android-a723029b89df295405632d3735c26c12bb173583.tar.bz2 etbsa-traccar-manager-android-a723029b89df295405632d3735c26c12bb173583.zip |
Handle forward slash in url
-rw-r--r-- | app/src/main/java/org/traccar/manager/MainFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/org/traccar/manager/MainFragment.java b/app/src/main/java/org/traccar/manager/MainFragment.java index 40e0808..ea1e345 100644 --- a/app/src/main/java/org/traccar/manager/MainFragment.java +++ b/app/src/main/java/org/traccar/manager/MainFragment.java @@ -62,6 +62,9 @@ public class MainFragment extends WebViewFragment { String url = PreferenceManager.getDefaultSharedPreferences( getActivity()).getString(MainActivity.PREFERENCE_URL, null); + if (url.endsWith("/")) { + url = url.substring(0, url.length() - 1); + } serverUri = Uri.parse(url); getWebView().loadUrl(url); |