Deleting a media file didn't work correctly

This commit is contained in:
daniel oeh 2013-09-04 20:10:42 +02:00
parent 684590665e
commit 196f5407ce
2 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,8 @@ public class DBWriter {
}
if (AppConfig.DEBUG)
Log.d(TAG, "Deleting File. Result: " + result);
EventDistributor.getInstance().sendQueueUpdateBroadcast();
EventDistributor.getInstance().sendUnreadItemsUpdateBroadcast();
}
}
});

View File

@ -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());