Merge pull request #4463 from opusforlife2/confirm_queue_delete_one_track

Ask for confirmation before clearing queue even if only 1 video in it
This commit is contained in:
Stypox 2020-10-10 22:01:55 +02:00 committed by GitHub
commit cf75e40332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -2074,8 +2074,7 @@ public class VideoDetailFragment
if (isClearingQueueConfirmationRequired(activity)
&& playerIsNotStopped()
&& activeQueue != null
&& !activeQueue.equals(playQueue)
&& activeQueue.getStreams().size() > 1) {
&& !activeQueue.equals(playQueue)) {
showClearingQueueConfirmation(onAllow);
} else {
onAllow.run();