diff options
author | Tom Hennen <tom.hennen@gmail.com> | 2015-01-30 10:40:15 -0500 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-01-30 10:40:15 -0500 |
commit | 85778b4aaa4a4cd2ae7fde80bb01afdc3632d123 (patch) | |
tree | 64af899d19f1cd311438c358222732d9461b0f5b /app | |
parent | 212644aebda8c73b5408f72a951abb1be2db45d1 (diff) | |
download | AntennaPod-85778b4aaa4a4cd2ae7fde80bb01afdc3632d123.zip |
Added option to empty/clear the queue.
Used the word 'clear' because it seems more active than 'empty'.
For issue #593
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java | 3 | ||||
-rw-r--r-- | app/src/main/res/menu/queue.xml | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java index ca8543b4c..e71c425e0 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java @@ -175,6 +175,9 @@ public class QueueFragment extends Fragment { DBTasks.refreshAllFeeds(getActivity(), feeds); } return true; + case R.id.clear_queue: + DBWriter.clearQueue(getActivity()); + return true; case R.id.queue_sort_alpha_asc: QueueSorter.sort(getActivity(), QueueSorter.Rule.ALPHA_ASC, true); return true; diff --git a/app/src/main/res/menu/queue.xml b/app/src/main/res/menu/queue.xml index b85279e5a..51e47c061 100644 --- a/app/src/main/res/menu/queue.xml +++ b/app/src/main/res/menu/queue.xml @@ -11,6 +11,13 @@ android:icon="?attr/navigation_refresh"/> <item + android:id="@+id/clear_queue" + android:title="Clear Queue" + android:menuCategory="container" + custom:showAsAction="collapseActionView" + android:icon="?attr/navigation_accept"/> + + <item android:id="@+id/queue_sort" android:title="@string/sort"> |