Browse Source

Fix copy-paste mistake

pull/176/head
Uranium235 10 years ago
parent
commit
a7272e3059
  1. 3
      app/src/main/java/org/transdroid/core/gui/DetailsFragment.java

3
app/src/main/java/org/transdroid/core/gui/DetailsFragment.java

@ -474,8 +474,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen @@ -474,8 +474,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
// Try using a VIEW intent given an ftp:// scheme URI
String file = checked.get(0).getRelativePath();
if (file != null) {
if (file.startsWith("/"))
if (file != null && file.startsWith("/"))
file = file.substring(1);
String url = urlBase + file;
Intent simpleStart = new Intent(Intent.ACTION_VIEW, Uri.parse(url))

Loading…
Cancel
Save