Merge pull request #3728 from txtd/develop
Add download button to queue batch processing
This commit is contained in:
commit
2d2bf0f7e3
|
@ -51,7 +51,7 @@ public class EpisodesApplyActionFragment extends Fragment {
|
||||||
public static final int ACTION_REMOVE_FROM_QUEUE = 2;
|
public static final int ACTION_REMOVE_FROM_QUEUE = 2;
|
||||||
private static final int ACTION_MARK_PLAYED = 4;
|
private static final int ACTION_MARK_PLAYED = 4;
|
||||||
private static final int ACTION_MARK_UNPLAYED = 8;
|
private static final int ACTION_MARK_UNPLAYED = 8;
|
||||||
private static final int ACTION_DOWNLOAD = 16;
|
public static final int ACTION_DOWNLOAD = 16;
|
||||||
public static final int ACTION_DELETE = 32;
|
public static final int ACTION_DELETE = 32;
|
||||||
private static final int ACTION_ALL = ACTION_ADD_TO_QUEUE | ACTION_REMOVE_FROM_QUEUE
|
private static final int ACTION_ALL = ACTION_ADD_TO_QUEUE | ACTION_REMOVE_FROM_QUEUE
|
||||||
| ACTION_MARK_PLAYED | ACTION_MARK_UNPLAYED | ACTION_DOWNLOAD | ACTION_DELETE;
|
| ACTION_MARK_PLAYED | ACTION_MARK_UNPLAYED | ACTION_DOWNLOAD | ACTION_DELETE;
|
||||||
|
|
|
@ -69,6 +69,7 @@ import io.reactivex.schedulers.Schedulers;
|
||||||
|
|
||||||
import static de.danoeh.antennapod.dialog.EpisodesApplyActionFragment.ACTION_DELETE;
|
import static de.danoeh.antennapod.dialog.EpisodesApplyActionFragment.ACTION_DELETE;
|
||||||
import static de.danoeh.antennapod.dialog.EpisodesApplyActionFragment.ACTION_REMOVE_FROM_QUEUE;
|
import static de.danoeh.antennapod.dialog.EpisodesApplyActionFragment.ACTION_REMOVE_FROM_QUEUE;
|
||||||
|
import static de.danoeh.antennapod.dialog.EpisodesApplyActionFragment.ACTION_DOWNLOAD;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows all items in the queue
|
* Shows all items in the queue
|
||||||
|
@ -349,7 +350,7 @@ public class QueueFragment extends Fragment {
|
||||||
return true;
|
return true;
|
||||||
case R.id.episode_actions:
|
case R.id.episode_actions:
|
||||||
((MainActivity) requireActivity()).loadChildFragment(
|
((MainActivity) requireActivity()).loadChildFragment(
|
||||||
EpisodesApplyActionFragment.newInstance(queue, ACTION_DELETE | ACTION_REMOVE_FROM_QUEUE));
|
EpisodesApplyActionFragment.newInstance(queue, ACTION_DELETE | ACTION_REMOVE_FROM_QUEUE | ACTION_DOWNLOAD));
|
||||||
return true;
|
return true;
|
||||||
case R.id.queue_sort_episode_title_asc:
|
case R.id.queue_sort_episode_title_asc:
|
||||||
setSortOrder(SortOrder.EPISODE_TITLE_A_Z);
|
setSortOrder(SortOrder.EPISODE_TITLE_A_Z);
|
||||||
|
|
Loading…
Reference in New Issue