diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-09-04 20:10:42 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-09-04 20:10:42 +0200 |
commit | 196f5407ce16d888bafae70788b60a8edf5ac27b (patch) | |
tree | c72b78c43bd032553120cd51f0582ce3a23b0a3f /src | |
parent | 684590665ecc5b3d32bf1041f01ba3a47794a533 (diff) | |
download | AntennaPod-196f5407ce16d888bafae70788b60a8edf5ac27b.zip |
Deleting a media file didn't work correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/de/danoeh/antennapod/storage/DBWriter.java | 2 | ||||
-rw-r--r-- | src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/storage/DBWriter.java b/src/de/danoeh/antennapod/storage/DBWriter.java index d96299dbe..74d84ef20 100644 --- a/src/de/danoeh/antennapod/storage/DBWriter.java +++ b/src/de/danoeh/antennapod/storage/DBWriter.java @@ -101,6 +101,8 @@ public class DBWriter { } if (AppConfig.DEBUG) Log.d(TAG, "Deleting File. Result: " + result); + EventDistributor.getInstance().sendQueueUpdateBroadcast(); + EventDistributor.getInstance().sendUnreadItemsUpdateBroadcast(); } } }); diff --git a/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java b/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java index fdd2011ae..e99a733dc 100644 --- a/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java +++ b/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java @@ -132,7 +132,7 @@ public class FeedItemMenuHandler { false); break; case R.id.remove_item: - DBWriter.deleteFeedMediaOfItem(context, selectedItem.getId()); + DBWriter.deleteFeedMediaOfItem(context, selectedItem.getMedia().getId()); break; case R.id.cancel_download_item: requester.cancelDownload(context, selectedItem.getMedia()); |