Search in sources :

Example 1 with IntraFeedSortDialog

use of de.danoeh.antennapod.dialog.IntraFeedSortDialog in project AntennaPod by AntennaPod.

the class FeedMenuHandler method showSortDialog.

private static void showSortDialog(Context context, Feed selectedFeed) {
    IntraFeedSortDialog sortDialog = new IntraFeedSortDialog(context, selectedFeed.getSortOrder(), selectedFeed.isLocalFeed()) {

        @Override
        protected void updateSort(@NonNull SortOrder sortOrder) {
            selectedFeed.setSortOrder(sortOrder);
            DBWriter.setFeedItemSortOrder(selectedFeed.getId(), sortOrder);
        }
    };
    sortDialog.openDialog();
}
Also used : NonNull(androidx.annotation.NonNull) SortOrder(de.danoeh.antennapod.model.feed.SortOrder) IntraFeedSortDialog(de.danoeh.antennapod.dialog.IntraFeedSortDialog)

Aggregations

NonNull (androidx.annotation.NonNull)1 IntraFeedSortDialog (de.danoeh.antennapod.dialog.IntraFeedSortDialog)1 SortOrder (de.danoeh.antennapod.model.feed.SortOrder)1