// Note: this.torrent is not cleared as we need to know later what the fragment was originally bound to
torrentDetails=null;
torrentFiles=null;
@ -198,47 +201,47 @@ public class DetailsFragment extends SherlockFragment {
@@ -198,47 +201,47 @@ public class DetailsFragment extends SherlockFragment {
}
@OptionsItem(resName="action_resume")
@OptionsItem(resName="action_resume")
protectedvoidresumeTorrent(){
getTasksExecutor().resumeTorrent(torrent);
}
@OptionsItem(resName="action_pause")
@OptionsItem(resName="action_pause")
protectedvoidpauseTorrent(){
getTasksExecutor().pauseTorrent(torrent);
}
@OptionsItem(resName="action_start_default")
@OptionsItem(resName="action_start_default")
protectedvoidstartTorrentDefault(){
getTasksExecutor().startTorrent(torrent,false);
}
@OptionsItem(resName="action_start_forced")
@OptionsItem(resName="action_start_forced")
protectedvoidstartTorrentForced(){
getTasksExecutor().startTorrent(torrent,true);
}
@OptionsItem(resName="action_stop")
@OptionsItem(resName="action_stop")
protectedvoidstopTorrent(){
getTasksExecutor().stopTorrent(torrent);
}
@OptionsItem(resName="action_remove_default")
@OptionsItem(resName="action_remove_default")
protectedvoidremoveTorrentDefault(){
getTasksExecutor().removeTorrent(torrent,false);
}
@OptionsItem(resName="action_remove_withdata")
@OptionsItem(resName="action_remove_withdata")
protectedvoidremoveTorrentWithData(){
getTasksExecutor().removeTorrent(torrent,true);
}
@OptionsItem(resName="action_setlabel")
@OptionsItem(resName="action_setlabel")
protectedvoidsetLabel(){
// TODO: Show label selection dialog
}
@OptionsItem(resName="action_updatetrackers")
@OptionsItem(resName="action_updatetrackers")
protectedvoidupdateTrackers(){
// TODO: Show trackers edit dialog
}
@ -269,8 +272,8 @@ public class DetailsFragment extends SherlockFragment {
@@ -269,8 +272,8 @@ public class DetailsFragment extends SherlockFragment {
// TODO: Start FTP download command for the selected torrents
Crouton.showText(getActivity(),"TODO: Start FTP download command for the selected torrents",
NavigationHelper.CROUTON_INFO_STYLE);
//for (TorrentFile file : checked) {
//}
//for (TorrentFile file : checked) {
//}
mode.finish();
returntrue;
}else{
@ -297,7 +300,8 @@ public class DetailsFragment extends SherlockFragment {
@@ -297,7 +300,8 @@ public class DetailsFragment extends SherlockFragment {