Don't mark episodes as played when removing from queue
Was introduced in 67d2287323
but I
am not sure why. It is not really logical to do - removing from the
queue just means that one is no longer interested in the episode - not
that it was actually played.
This commit is contained in:
parent
d08a9c423e
commit
78db02d7a7
|
@ -490,19 +490,13 @@ public class QueueFragment extends Fragment implements Toolbar.OnMenuItemClickLi
|
|||
final int position = viewHolder.getAdapterPosition();
|
||||
Log.d(TAG, "remove(" + position + ")");
|
||||
final FeedItem item = queue.get(position);
|
||||
final boolean isRead = item.isPlayed();
|
||||
DBWriter.markItemPlayed(FeedItem.PLAYED, false, item.getId());
|
||||
DBWriter.removeQueueItem(getActivity(), true, item);
|
||||
|
||||
((MainActivity) getActivity()).showSnackbarAbovePlayer(
|
||||
item.hasMedia() ? R.string.marked_as_read_label : R.string.marked_as_read_no_media_label,
|
||||
getResources().getQuantityString(R.plurals.removed_from_queue_batch_label, 1, 1),
|
||||
Snackbar.LENGTH_LONG)
|
||||
.setAction(getString(R.string.undo), v -> {
|
||||
DBWriter.addQueueItemAt(getActivity(), item.getId(), position, false);
|
||||
if (!isRead) {
|
||||
DBWriter.markItemPlayed(FeedItem.UNPLAYED, item.getId());
|
||||
}
|
||||
});
|
||||
.setAction(getString(R.string.undo), v ->
|
||||
DBWriter.addQueueItemAt(getActivity(), item.getId(), position, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -197,9 +197,7 @@
|
|||
<string name="remove_new_flag_label">Remove \"new\" flag</string>
|
||||
<string name="removed_new_flag_label">Removed \"new\" flag</string>
|
||||
<string name="mark_read_label">Mark as played</string>
|
||||
<string name="marked_as_read_label">Marked as played</string>
|
||||
<string name="mark_read_no_media_label">Mark as read</string>
|
||||
<string name="marked_as_read_no_media_label">Marked as read</string>
|
||||
<string name="play_this_to_seek_position">To jump to positions, you need to play the episode</string>
|
||||
<plurals name="marked_read_batch_label">
|
||||
<item quantity="one">%d episode marked as played.</item>
|
||||
|
|
Loading…
Reference in New Issue