summaryrefslogtreecommitdiff
path: root/src/de/podfetcher
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-06-24 17:28:34 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-06-24 17:28:34 +0200
commitb283eae1b9b15c092f49b86cfbecc400f60b1171 (patch)
tree881f949bef1b7fdc37980669b56b000250ed2d26 /src/de/podfetcher
parente3115f1ae4f89b75fecf3c5e3763b4b38cc09899 (diff)
downloadAntennaPod-b283eae1b9b15c092f49b86cfbecc400f60b1171.zip
Implemented Fragment for showing the queue
Diffstat (limited to 'src/de/podfetcher')
-rw-r--r--src/de/podfetcher/activity/PodfetcherActivity.java10
-rw-r--r--src/de/podfetcher/feed/FeedManager.java4
-rw-r--r--src/de/podfetcher/fragment/QueueFragment.java11
3 files changed, 25 insertions, 0 deletions
diff --git a/src/de/podfetcher/activity/PodfetcherActivity.java b/src/de/podfetcher/activity/PodfetcherActivity.java
index d892df3f4..564a39ae0 100644
--- a/src/de/podfetcher/activity/PodfetcherActivity.java
+++ b/src/de/podfetcher/activity/PodfetcherActivity.java
@@ -20,6 +20,7 @@ import de.podfetcher.R;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.fragment.FeedItemlistFragment;
import de.podfetcher.fragment.FeedlistFragment;
+import de.podfetcher.fragment.QueueFragment;
import de.podfetcher.fragment.UnreadItemlistFragment;
public class PodfetcherActivity extends SherlockFragmentActivity {
@@ -59,6 +60,15 @@ public class PodfetcherActivity extends SherlockFragmentActivity {
R.string.new_label).toString(),
UnreadItemlistFragment.class));
actionBar.addTab(tab);
+
+ tab = actionBar
+ .newTab()
+ .setText(getText(R.string.queue_label).toString())
+ .setTabListener(
+ new TabListener<QueueFragment>(this, getText(
+ R.string.queue_label).toString(),
+ QueueFragment.class));
+ actionBar.addTab(tab);
}
@Override
diff --git a/src/de/podfetcher/feed/FeedManager.java b/src/de/podfetcher/feed/FeedManager.java
index 8ed227d3e..ac5dbd786 100644
--- a/src/de/podfetcher/feed/FeedManager.java
+++ b/src/de/podfetcher/feed/FeedManager.java
@@ -502,4 +502,8 @@ public class FeedManager {
return downloadLog;
}
+ public ArrayList<FeedItem> getQueue() {
+ return queue;
+ }
+
}
diff --git a/src/de/podfetcher/fragment/QueueFragment.java b/src/de/podfetcher/fragment/QueueFragment.java
new file mode 100644
index 000000000..13ca513e8
--- /dev/null
+++ b/src/de/podfetcher/fragment/QueueFragment.java
@@ -0,0 +1,11 @@
+package de.podfetcher.fragment;
+
+import de.podfetcher.feed.FeedManager;
+
+public class QueueFragment extends FeedItemlistFragment {
+
+ public QueueFragment() {
+ super(FeedManager.getInstance().getQueue());
+ }
+
+}