Search in sources :

Example 1 with VideoFavoritesHelper

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();
}
Also used : VideoFavoritesHelper(com.amazon.android.contentbrowser.database.helpers.VideoFavoritesHelper)

Aggregations

VideoFavoritesHelper (com.amazon.android.contentbrowser.database.helpers.VideoFavoritesHelper)1