@ -182,8 +182,10 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -182,8 +182,10 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
// Refresh the detailed statistics (errors) and list of files
@ -366,42 +368,50 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -366,42 +368,50 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@OptionsItem(R.id.action_resume)
protectedvoidresumeTorrent(){
getTasksExecutor().resumeTorrent(torrent);
if(getTasksExecutor()!=null)
getTasksExecutor().resumeTorrent(torrent);
}
@OptionsItem(R.id.action_pause)
protectedvoidpauseTorrent(){
getTasksExecutor().pauseTorrent(torrent);
if(getTasksExecutor()!=null)
getTasksExecutor().pauseTorrent(torrent);
}
@OptionsItem(R.id.action_start_direct)
protectedvoidstartTorrentDirect(){
getTasksExecutor().startTorrent(torrent,false);
if(getTasksExecutor()!=null)
getTasksExecutor().startTorrent(torrent,false);
}
@OptionsItem(R.id.action_start_default)
protectedvoidstartTorrentDefault(){
getTasksExecutor().startTorrent(torrent,false);
if(getTasksExecutor()!=null)
getTasksExecutor().startTorrent(torrent,false);
}
@OptionsItem(R.id.action_start_forced)
protectedvoidstartTorrentForced(){
getTasksExecutor().startTorrent(torrent,true);
if(getTasksExecutor()!=null)
getTasksExecutor().startTorrent(torrent,true);
}
@OptionsItem(R.id.action_stop)
protectedvoidstopTorrent(){
getTasksExecutor().stopTorrent(torrent);
if(getTasksExecutor()!=null)
getTasksExecutor().stopTorrent(torrent);
}
@OptionsItem(R.id.action_remove_default)
protectedvoidremoveTorrentDefault(){
getTasksExecutor().removeTorrent(torrent,false);
if(getTasksExecutor()!=null)
getTasksExecutor().removeTorrent(torrent,false);
}
@OptionsItem(R.id.action_remove_withdata)
protectedvoidremoveTorrentWithData(){
getTasksExecutor().removeTorrent(torrent,true);
if(getTasksExecutor()!=null)
getTasksExecutor().removeTorrent(torrent,true);
}
@OptionsItem(R.id.action_setlabel)
@ -413,7 +423,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -413,7 +423,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@OptionsItem(R.id.action_forcerecheck)
protectedvoidsetForceRecheck(){
getTasksExecutor().forceRecheckTorrent(torrent);
if(getTasksExecutor()!=null)
getTasksExecutor().forceRecheckTorrent(torrent);
}
@OptionsItem(R.id.action_updatetrackers)
@ -435,7 +446,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -435,7 +446,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
if(torrent==null){
return;
}
getTasksExecutor().updateLabel(torrent,newLabel);
if(getTasksExecutor()!=null)
getTasksExecutor().updateLabel(torrent,newLabel);
}
@Override
@ -443,7 +455,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -443,7 +455,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@ -451,7 +464,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -451,7 +464,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@ -613,7 +627,8 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
@@ -613,7 +627,8 @@ 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 {