use of com.amazon.android.contentbrowser.database.helpers.VideoFavoritesHelper in project zype-firebuilder by zype.
the class FavoritesManager method addLocalFavorite.
private void addLocalFavorite(Content content) {
VideoFavoritesHelper videoFavoritesHelper = VideoFavoritesHelper.getInstance();
if (!videoFavoritesHelper.recordExists(context, content.getId())) {
String videoFavoriteId = content.getExtraValueAsString(Content.EXTRA_VIDEO_FAVORITE_ID);
videoFavoritesHelper.addVideoFavorite(context, content.getId(), videoFavoriteId);
}
addVideoToFavoritesContentContainer(content);
contentBrowser.updateContentActions();
}
Aggregations