New select criteria: queued, not queued
This commit is contained in:
parent
748a6c2745
commit
8944a61e3d
@ -178,6 +178,14 @@ public class EpisodesApplyActionFragment extends Fragment {
|
||||
checkDownloaded(false);
|
||||
resId = R.string.selected_not_downloaded_label;
|
||||
break;
|
||||
case R.id.check_queued:
|
||||
checkQueued(true);
|
||||
resId = R.string.selected_queued_label;
|
||||
break;
|
||||
case R.id.check_not_queued:
|
||||
checkQueued(false);
|
||||
resId = R.string.selected_not_queued_label;
|
||||
break;
|
||||
case R.id.sort_title_a_z:
|
||||
sortByTitle(false);
|
||||
return true;
|
||||
@ -299,6 +307,17 @@ public class EpisodesApplyActionFragment extends Fragment {
|
||||
refreshCheckboxes();
|
||||
}
|
||||
|
||||
private void checkQueued(boolean isQueued) {
|
||||
for (FeedItem episode : episodes) {
|
||||
if(episode.isTagged(FeedItem.TAG_QUEUE) == isQueued) {
|
||||
checkedIds.add(episode.getId());
|
||||
} else {
|
||||
checkedIds.remove(episode.getId());
|
||||
}
|
||||
}
|
||||
refreshCheckboxes();
|
||||
}
|
||||
|
||||
private void refreshTitles() {
|
||||
titles.clear();
|
||||
for(FeedItem episode : episodes) {
|
||||
|
@ -42,6 +42,10 @@
|
||||
android:title="@string/downloaded_label"/>
|
||||
<item android:id="@+id/check_not_downloaded"
|
||||
android:title="@string/not_downloaded_label"/>
|
||||
<item android:id="@+id/check_queued"
|
||||
android:title="@string/queued_label"/>
|
||||
<item android:id="@+id/check_not_queued"
|
||||
android:title="@string/not_queued_label"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
@ -559,6 +559,10 @@
|
||||
<string name="selected_downloaded_label">Selected downloaded Episodes</string>
|
||||
<string name="not_downloaded_label">Not downloaded</string>
|
||||
<string name="selected_not_downloaded_label">Selected not downloaded Episodes</string>
|
||||
<string name="queued_label">Queued</string>
|
||||
<string name="selected_queued_label">Selected queued Episodes</string>
|
||||
<string name="not_queued_label">Not queued</string>
|
||||
<string name="selected_not_queued_label">Selected not queued Episodes</string>
|
||||
<string name="sort_title"><b>Sort by…</b></string>
|
||||
<string name="sort_title_a_z">Title (A \u2192 Z)</string>
|
||||
<string name="sort_title_z_a">Title (Z \u2192 A)</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user