summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/menuhandler
diff options
context:
space:
mode:
authorTom Hennen <tom.hennen@gmail.com>2015-09-19 14:40:01 -0400
committerTom Hennen <tom.hennen@gmail.com>2015-09-20 14:21:15 -0400
commit1993f779e8b25507a4096effd72618937c2f4ad0 (patch)
tree53b14b25a51af25844bde6eacc91af87ae4e0eb7 /app/src/main/java/de/danoeh/antennapod/menuhandler
parenta89edfcad4f69a7f8ddbce62ca33d4ba80d4a9ad (diff)
downloadAntennaPod-1993f779e8b25507a4096effd72618937c2f4ad0.zip
basic favorite functionality
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/menuhandler')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
index 510ea2760..ede40c53f 100644
--- a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
+++ b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java
@@ -193,6 +193,12 @@ public class FeedItemMenuHandler {
case R.id.remove_from_queue_item:
DBWriter.removeQueueItem(context, selectedItem, true);
break;
+ case R.id.add_to_favorites_item:
+ DBWriter.addFavoriteItem(selectedItem);
+ break;
+ case R.id.remove_from_favorites_item:
+ DBWriter.removeFavoriteItem(selectedItem);
+ break;
case R.id.reset_position:
selectedItem.getMedia().setPosition(0);
DBWriter.markItemPlayed(selectedItem, FeedItem.UNPLAYED, true);