Browse Source

Prevent showing of FTP download option when no path is known for a file.

pull/11/head
Eric Kok 13 years ago
parent
commit
79052a8e7d
  1. 4
      android/src/org/transdroid/gui/DetailsFragment.java

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

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

Loading…
Cancel
Save