diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-06-16 16:51:25 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-06-16 16:51:25 +0200 |
commit | d539786af67f07044b31febb369abe69dbf8e486 (patch) | |
tree | d89c4db28589db40bfeee92f036212ab7ac6f65c /src | |
parent | c2054be4600cd88155d12be01e166ba38ff0d32c (diff) | |
download | AntennaPod-d539786af67f07044b31febb369abe69dbf8e486.zip |
Added Button to FeedItemlist item
Diffstat (limited to 'src')
-rw-r--r-- | src/de/podfetcher/activity/FeedItemlistActivity.java | 4 | ||||
-rw-r--r-- | src/de/podfetcher/activity/PodfetcherActivity.java | 4 | ||||
-rw-r--r-- | src/de/podfetcher/feed/FeedItem.java | 4 | ||||
-rw-r--r-- | src/de/podfetcher/feed/FeedManager.java | 1 | ||||
-rw-r--r-- | src/de/podfetcher/storage/PodDBAdapter.java | 2 |
5 files changed, 10 insertions, 5 deletions
diff --git a/src/de/podfetcher/activity/FeedItemlistActivity.java b/src/de/podfetcher/activity/FeedItemlistActivity.java index c08292d54..3166d1faf 100644 --- a/src/de/podfetcher/activity/FeedItemlistActivity.java +++ b/src/de/podfetcher/activity/FeedItemlistActivity.java @@ -45,4 +45,8 @@ public class FeedItemlistActivity extends SherlockListActivity { startActivity(showItem); } + + public void onButActionClicked(View v) { + Log.d(TAG, "Button clicked"); + } } diff --git a/src/de/podfetcher/activity/PodfetcherActivity.java b/src/de/podfetcher/activity/PodfetcherActivity.java index b5d15798f..655cfc9cf 100644 --- a/src/de/podfetcher/activity/PodfetcherActivity.java +++ b/src/de/podfetcher/activity/PodfetcherActivity.java @@ -48,9 +48,9 @@ public class PodfetcherActivity extends SherlockFragmentActivity { actionBar.addTab(tab); tab = actionBar.newTab() - .setText("Playlist") + .setText(getText(R.string.new_label).toString()) .setTabListener(new TabListener<FeedlistFragment>( - this, "Playlist", FeedlistFragment.class)); + this, getText(R.string.new_label).toString(), FeedlistFragment.class)); actionBar.addTab(tab); } diff --git a/src/de/podfetcher/feed/FeedItem.java b/src/de/podfetcher/feed/FeedItem.java index 972195eb7..129c25b4b 100644 --- a/src/de/podfetcher/feed/FeedItem.java +++ b/src/de/podfetcher/feed/FeedItem.java @@ -18,7 +18,7 @@ public class FeedItem extends FeedComponent{ private boolean read; public FeedItem() { - this.read = false; + this.read = true; } public FeedItem(String title, String description, String link, @@ -30,7 +30,7 @@ public class FeedItem extends FeedComponent{ this.pubDate = pubDate; this.media = media; this.feed = feed; - this.read = false; + this.read = true; } public String getTitle() { diff --git a/src/de/podfetcher/feed/FeedManager.java b/src/de/podfetcher/feed/FeedManager.java index d087a7222..4362727c8 100644 --- a/src/de/podfetcher/feed/FeedManager.java +++ b/src/de/podfetcher/feed/FeedManager.java @@ -95,6 +95,7 @@ public class FeedManager { "Found no existing Feed with title " + newFeed.getTitle() + ". Adding as new one."); // Add a new Feed + newFeed.getItems().get(0).setRead(false); addNewFeed(context, newFeed); } else { Log.d(TAG, "Feed with title " + newFeed.getTitle() diff --git a/src/de/podfetcher/storage/PodDBAdapter.java b/src/de/podfetcher/storage/PodDBAdapter.java index 17e8e8675..b1c37112d 100644 --- a/src/de/podfetcher/storage/PodDBAdapter.java +++ b/src/de/podfetcher/storage/PodDBAdapter.java @@ -239,7 +239,7 @@ public class PodDBAdapter { setFeed(item.getFeed()); } values.put(KEY_FEED, item.getFeed().getId()); - values.put(KEY_READ, (item.isRead()) ? 1 : 0); + values.put(KEY_READ, item.isRead()); open(); if (item.getId() == 0) { |