diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-02-27 20:15:27 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-02-27 20:15:27 +0100 |
commit | 7c6c3ef1019e93001ee5fca9093ba21443c5cae6 (patch) | |
tree | 1ff10392255ab6d5ea54db5ee30bb6979bfd8166 /src/de/danoeh/antennapod/activity/MediaplayerActivity.java | |
parent | bece620c4355363ec3a6b49d58ec1b3ab79c20db (diff) | |
download | AntennaPod-7c6c3ef1019e93001ee5fca9093ba21443c5cae6.zip |
Do not add things to the flattr queue if the user isn't logged in
- Bugfix: The no-token dialog was shown every time a feed was refreshed if the user wasn't logged in and had clicked the "flattr this" button before
Diffstat (limited to 'src/de/danoeh/antennapod/activity/MediaplayerActivity.java')
-rw-r--r-- | src/de/danoeh/antennapod/activity/MediaplayerActivity.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/de/danoeh/antennapod/activity/MediaplayerActivity.java b/src/de/danoeh/antennapod/activity/MediaplayerActivity.java index 0555e199d..27ac7afd8 100644 --- a/src/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/src/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -23,7 +23,7 @@ import de.danoeh.antennapod.feed.FeedItem; import de.danoeh.antennapod.feed.FeedMedia; import de.danoeh.antennapod.preferences.UserPreferences; import de.danoeh.antennapod.service.playback.PlaybackService; -import de.danoeh.antennapod.storage.DBWriter; +import de.danoeh.antennapod.storage.DBTasks; import de.danoeh.antennapod.util.Converter; import de.danoeh.antennapod.util.ShareUtils; import de.danoeh.antennapod.util.StorageUtils; @@ -320,8 +320,7 @@ public abstract class MediaplayerActivity extends ActionBarActivity case R.id.support_item: if (media instanceof FeedMedia) { FeedItem feedItem = ((FeedMedia) media).getItem(); - feedItem.getFlattrStatus().setFlattrQueue(); - DBWriter.setFlattredStatus(this, feedItem, true); + DBTasks.flattrItemIfLoggedIn(this, feedItem); } break; case R.id.share_link_item: |