@ -182,9 +182,11 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -182,9 +182,11 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
// Refresh the detailed statistics (errors) and list of files
@ -366,41 +368,49 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -366,41 +368,49 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@OptionsItem(R.id.action_resume)
protectedvoidresumeTorrent(){
if(getTasksExecutor()!=null)
getTasksExecutor().resumeTorrent(torrent);
}
@OptionsItem(R.id.action_pause)
protectedvoidpauseTorrent(){
if(getTasksExecutor()!=null)
getTasksExecutor().pauseTorrent(torrent);
}
@OptionsItem(R.id.action_start_direct)
protectedvoidstartTorrentDirect(){
if(getTasksExecutor()!=null)
getTasksExecutor().startTorrent(torrent,false);
}
@OptionsItem(R.id.action_start_default)
protectedvoidstartTorrentDefault(){
if(getTasksExecutor()!=null)
getTasksExecutor().startTorrent(torrent,false);
}
@OptionsItem(R.id.action_start_forced)
protectedvoidstartTorrentForced(){
if(getTasksExecutor()!=null)
getTasksExecutor().startTorrent(torrent,true);
}
@OptionsItem(R.id.action_stop)
protectedvoidstopTorrent(){
if(getTasksExecutor()!=null)
getTasksExecutor().stopTorrent(torrent);
}
@OptionsItem(R.id.action_remove_default)
protectedvoidremoveTorrentDefault(){
if(getTasksExecutor()!=null)
getTasksExecutor().removeTorrent(torrent,false);
}
@OptionsItem(R.id.action_remove_withdata)
protectedvoidremoveTorrentWithData(){
if(getTasksExecutor()!=null)
getTasksExecutor().removeTorrent(torrent,true);
}
@ -413,6 +423,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -413,6 +423,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@OptionsItem(R.id.action_forcerecheck)
protectedvoidsetForceRecheck(){
if(getTasksExecutor()!=null)
getTasksExecutor().forceRecheckTorrent(torrent);
}
@ -435,6 +446,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -435,6 +446,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
if(torrent==null){
return;
}
if(getTasksExecutor()!=null)
getTasksExecutor().updateLabel(torrent,newLabel);
}
@ -443,6 +455,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -443,6 +455,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@ -451,6 +464,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -451,6 +464,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@ -613,6 +627,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -613,6 +627,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@ -165,11 +166,11 @@ public class SearchActivity extends AppCompatActivity {
@@ -165,11 +166,11 @@ public class SearchActivity extends AppCompatActivity {