bulk edit - refactor - rename menu ids, to be consistent with single edit counterparts
This commit is contained in:
parent
a1d718a59a
commit
1052b393d2
|
@ -154,41 +154,41 @@ public class EpisodesApplyActionFragment extends Fragment {
|
|||
|
||||
// show only specified actions, and bind speed dial UIs to the actual logic
|
||||
if((actions & ACTION_ADD_TO_QUEUE) == 0) {
|
||||
mSpeedDialView.removeActionItemById(R.id.addToQueue);
|
||||
mSpeedDialView.removeActionItemById(R.id.add_to_queue_batch);
|
||||
}
|
||||
if((actions & ACTION_REMOVE_FROM_QUEUE) == 0) {
|
||||
mSpeedDialView.removeActionItemById(R.id.removeFromQueue);
|
||||
mSpeedDialView.removeActionItemById(R.id.remove_from_queue_batch);
|
||||
}
|
||||
if((actions & ACTION_MARK_PLAYED) == 0) {
|
||||
mSpeedDialView.removeActionItemById(R.id.markAsPlayed);
|
||||
mSpeedDialView.removeActionItemById(R.id.mark_read_batch);
|
||||
}
|
||||
if((actions & ACTION_MARK_UNPLAYED) == 0) {
|
||||
mSpeedDialView.removeActionItemById(R.id.markAsUnplayed);
|
||||
mSpeedDialView.removeActionItemById(R.id.mark_unread_batch);
|
||||
}
|
||||
if((actions & ACTION_DOWNLOAD) == 0) {
|
||||
mSpeedDialView.removeActionItemById(R.id.download);
|
||||
mSpeedDialView.removeActionItemById(R.id.download_batch);
|
||||
}
|
||||
if((actions & ACTION_DELETE) == 0) {
|
||||
mSpeedDialView.removeActionItemById(R.id.delete);
|
||||
mSpeedDialView.removeActionItemById(R.id.delete_batch);
|
||||
}
|
||||
mSpeedDialView.setOnActionSelectedListener(actionItem -> {
|
||||
switch(actionItem.getId()) {
|
||||
case R.id.addToQueue:
|
||||
case R.id.add_to_queue_batch:
|
||||
queueChecked();
|
||||
break;
|
||||
case R.id.removeFromQueue:
|
||||
case R.id.remove_from_queue_batch:
|
||||
removeFromQueueChecked();
|
||||
break;
|
||||
case R.id.markAsPlayed:
|
||||
case R.id.mark_read_batch:
|
||||
markedCheckedPlayed();
|
||||
break;
|
||||
case R.id.markAsUnplayed:
|
||||
case R.id.mark_unread_batch:
|
||||
markedCheckedUnplayed();
|
||||
break;
|
||||
case R.id.download:
|
||||
case R.id.download_batch:
|
||||
downloadChecked();
|
||||
break;
|
||||
case R.id.delete:
|
||||
case R.id.delete_batch:
|
||||
deleteChecked();
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -5,29 +5,29 @@
|
|||
E.g., item @id/delete is the first in the xml,
|
||||
visually it will be shown at the bottom of the list of actions.
|
||||
-->
|
||||
<item android:id="@+id/delete"
|
||||
<item android:id="@+id/delete_batch"
|
||||
android:icon="?attr/content_discard"
|
||||
android:title="@string/remove_episode_lable"
|
||||
/>
|
||||
<item android:id="@+id/download"
|
||||
<item android:id="@+id/download_batch"
|
||||
android:icon="?attr/av_download"
|
||||
android:title="@string/download_label"
|
||||
/>
|
||||
<item android:id="@+id/markAsUnplayed"
|
||||
<item android:id="@+id/mark_unread_batch"
|
||||
android:icon="?attr/navigation_cancel"
|
||||
android:title="@string/mark_unread_label"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/markAsPlayed"
|
||||
android:id="@+id/mark_read_batch"
|
||||
android:icon="?attr/navigation_accept"
|
||||
android:title="@string/mark_read_label"
|
||||
/>
|
||||
<item android:id="@+id/removeFromQueue"
|
||||
<item android:id="@+id/remove_from_queue_batch"
|
||||
android:icon="@drawable/ic_remove_grey600"
|
||||
android:title="@string/remove_from_queue_label"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/addToQueue"
|
||||
android:id="@+id/add_to_queue_batch"
|
||||
android:icon="?attr/content_new"
|
||||
android:title="@string/add_to_queue_label"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue