Browse Source

Disable FTP download options for clietns that not suppoirt it (like qBittorrent).

pull/11/head
Eric Kok 13 years ago
parent
commit
83012989a3
  1. 3
      android/src/org/transdroid/gui/DetailsFragment.java

3
android/src/org/transdroid/gui/DetailsFragment.java

@ -203,7 +203,8 @@ public class DetailsFragment extends Fragment implements IDaemonCallback, OnSele @@ -203,7 +203,8 @@ public class DetailsFragment extends Fragment implements IDaemonCallback, OnSele
&& file.getMimeType() != null) {
menu.add(FILEMENU_REMOTESTART_ID, FILEMENU_REMOTESTART_ID, 0, R.string.file_remotestart);
}
if (daemon.getSettings().getFtpUrl() != null && !daemon.getSettings().getFtpUrl().equals("")) {
if (Daemon.supportsFilePaths(daemon.getType()) && torrent.getLocationDir() != null &&
daemon.getSettings().getFtpUrl() != null && !daemon.getSettings().getFtpUrl().equals("")) {
menu.add(FILEMENU_FTPDOWNLOAD_ID, FILEMENU_FTPDOWNLOAD_ID, 0, R.string.file_ftpdownload);
}

Loading…
Cancel
Save