<stringname="navigation_nosettings">Transdroid allows you to monitor and manage the torrent client you run at home or on your seedbox. Setting things up can be a bit tricky, but we offer step-by-step guides and promise it\'ll be worth it!</string>
<stringname="navigation_emptytorrents">Connected, but no torrent are active within the current filter</string>
<stringname="navigation_emptydetails">Select a torrent to view its details</string>
<stringname="navigation_emptytorrents">Connected, but no torrent are active within the current filter</string>
<stringname="navigation_emptydetails">Select a torrent to view its details</string>
<stringname="navigation_nosettings">Transdroid allows you to monitor and manage the torrent client you run at home or on your seedbox. Setting things up can be a bit tricky, but we offer step-by-step guides and promise it\'ll be worth it!</string>
<stringname="status_status">Status: %1%s</string>
<stringname="status_waiting">Waiting to check…</string>
<stringname="status_checking">Verifying local data…</string>
<stringname="status_waitingtodl">Waiting to download %s</string>
@ -102,12 +111,6 @@ public class DetailsActivity extends SherlockFragmentActivity {
@@ -102,12 +111,6 @@ public class DetailsActivity extends SherlockFragmentActivity {
@ -120,12 +123,6 @@ public class DetailsActivity extends SherlockFragmentActivity {
@@ -120,12 +123,6 @@ public class DetailsActivity extends SherlockFragmentActivity {
@ -138,10 +135,104 @@ public class DetailsActivity extends SherlockFragmentActivity {
@@ -138,10 +135,104 @@ public class DetailsActivity extends SherlockFragmentActivity {
@ -151,4 +242,22 @@ public class DetailsActivity extends SherlockFragmentActivity {
@@ -151,4 +242,22 @@ public class DetailsActivity extends SherlockFragmentActivity {
@ -137,19 +142,58 @@ public class DetailsFragment extends SherlockFragment {
@@ -137,19 +142,58 @@ public class DetailsFragment extends SherlockFragment {
@ -30,6 +32,12 @@ public class TorrentsFragment extends SherlockFragment {
@@ -30,6 +32,12 @@ public class TorrentsFragment extends SherlockFragment {
// Local data
@InstanceState
protectedArrayList<Torrent>torrents=null;
@InstanceState
protectedNavigationFiltercurrentFilter=null;
@InstanceState
protectedbooleanhasAConnection=false;
@InstanceState
protectedbooleanisLoading=false;
// Views
@ViewById(R.id.torrent_list)
@ -38,11 +46,12 @@ public class TorrentsFragment extends SherlockFragment {
@@ -38,11 +46,12 @@ public class TorrentsFragment extends SherlockFragment {
@ -91,10 +113,33 @@ public class TorrentsFragment extends SherlockFragment {
@@ -91,10 +113,33 @@ public class TorrentsFragment extends SherlockFragment {
}
// Execute the requested action
// TODO: Add the other actions
switch(item.getItemId()){
caseR.id.action_start:
startTorrents(checked);
caseR.id.action_resume:
for(Torrenttorrent:checked){
getTasksExecutor().resumeTorrent(torrent);
}
mode.finish();
returntrue;
caseR.id.action_pause:
for(Torrenttorrent:checked){
getTasksExecutor().pauseTorrent(torrent);
}
mode.finish();
returntrue;
caseR.id.action_remove_default:
for(Torrenttorrent:checked){
getTasksExecutor().removeTorrent(torrent,false);
}
mode.finish();
returntrue;
caseR.id.action_remove_withdata:
for(Torrenttorrent:checked){
getTasksExecutor().removeTorrent(torrent,true);
}
mode.finish();
returntrue;
caseR.id.action_setlabel:
// TODO: Open label selection dialogue
mode.finish();
returntrue;
default:
@ -126,31 +171,37 @@ public class TorrentsFragment extends SherlockFragment {
@@ -126,31 +171,37 @@ public class TorrentsFragment extends SherlockFragment {