diff --git a/android/res/layout/dialog_set_filter.xml b/android/res/layout/dialog_set_filter.xml
new file mode 100644
index 00000000..972fdc52
--- /dev/null
+++ b/android/res/layout/dialog_set_filter.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml
index 0f75c56b..f8dbf110 100644
--- a/android/res/values/strings.xml
+++ b/android/res/values/strings.xml
@@ -19,6 +19,8 @@
Torrent serverNo servers have been configured yet
+Reset
+
All labelsUnlabeledNew label
@@ -42,7 +44,7 @@
Stop allStart allFilter list
-Sort by (resort to reverse order)
+Sort listSort by (resort to reverse order)NameStatusDate done
@@ -63,6 +65,7 @@
Force startSet labelSet download location
+Set list filterSet as defaultDefault site set toMove up
@@ -418,4 +421,5 @@
BlackTransparent
+
diff --git a/android/src/org/transdroid/gui/TorrentsFragment.java b/android/src/org/transdroid/gui/TorrentsFragment.java
index 125beccc..423ef092 100644
--- a/android/src/org/transdroid/gui/TorrentsFragment.java
+++ b/android/src/org/transdroid/gui/TorrentsFragment.java
@@ -142,6 +142,7 @@ public class TorrentsFragment extends Fragment implements IDaemonCallback, OnTou
private static final int DIALOG_SETDOWNLOADLOCATION = 6;
private static final int DIALOG_REFRESH_INTERVAL = 7;
private static final int DIALOG_INSTALLBARCODESCANNER = 8;
+ private static final int DIALOG_FILTER = 9;
private static final int MENU_ADD_ID = 1;
private static final int MENU_BARCODE_ID = 2;
@@ -183,6 +184,8 @@ public class TorrentsFragment extends Fragment implements IDaemonCallback, OnTou
private static final int MENU_REMOVE_DATA_ID = 47;
private static final int MENU_SETLABEL_ID = 48;
private static final int MENU_SETDOWNLOADLOCATION_ID = 49;
+
+ private static final int MENU_FILTER_ID = 60;
protected boolean useTabletInterface;
private Handler handler;
@@ -206,6 +209,7 @@ public class TorrentsFragment extends Fragment implements IDaemonCallback, OnTou
private String activeLabel = null;
private boolean inAlternativeMode = false; // Whether the server is in alternative (speed) mode (i.e. Transmission's Turtle Mode)
protected boolean ignoreFirstListNavigation = true;
+ private String activeFilter = null;
private List allTorrents;
private List