aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 17:56:58 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 17:56:58 +1300
commita723029b89df295405632d3735c26c12bb173583 (patch)
treeb6d2e4057970dd74aeb0eda38ee7f3ea1cc1dc56 /app/src/main/java
parent3dc5246e5f8d38f2e13409a337ef706476a70eb6 (diff)
downloadetbsa-traccar-manager-android-a723029b89df295405632d3735c26c12bb173583.tar.gz
etbsa-traccar-manager-android-a723029b89df295405632d3735c26c12bb173583.tar.bz2
etbsa-traccar-manager-android-a723029b89df295405632d3735c26c12bb173583.zip
Handle forward slash in url
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/org/traccar/manager/MainFragment.java3
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);