@@ -316,7 +316,8 @@ protected void onSuccess() {
316316 if (choiceChecker .isAvailableAndSelected (
317317 R .string .video_player_key ,
318318 R .string .background_player_key ,
319- R .string .popup_player_key )) {
319+ R .string .popup_player_key ,
320+ R .string .enqueue_key )) {
320321
321322 final String selectedChoice = choiceChecker .getSelectedChoiceKey ();
322323
@@ -329,6 +330,8 @@ protected void onSuccess() {
329330 || selectedChoice .equals (getString (R .string .popup_player_key ));
330331 final boolean isAudioPlayerSelected =
331332 selectedChoice .equals (getString (R .string .background_player_key ));
333+ final boolean isEnqueueSelected =
334+ selectedChoice .equals (getString (R .string .enqueue_key ));
332335
333336 if (currentLinkType != LinkType .STREAM
334337 && ((isExtAudioEnabled && isAudioPlayerSelected )
@@ -345,7 +348,9 @@ protected void onSuccess() {
345348
346349 // Check if the service supports the choice
347350 if ((isVideoPlayerSelected && capabilities .contains (VIDEO ))
348- || (isAudioPlayerSelected && capabilities .contains (AUDIO ))) {
351+ || (isAudioPlayerSelected && capabilities .contains (AUDIO ))
352+ || (isEnqueueSelected && (capabilities .contains (VIDEO )
353+ || capabilities .contains (AUDIO )))) {
349354 handleChoice (selectedChoice );
350355 } else {
351356 handleChoice (getString (R .string .show_info_key ));
@@ -544,7 +549,10 @@ private List<AdapterChoiceItem> getChoicesForService(final StreamingService serv
544549 // not be added to a playlist
545550 returnedItems .add (new AdapterChoiceItem (getString (R .string .add_to_playlist_key ),
546551 getString (R .string .add_to_playlist ),
547- R .drawable .ic_add ));
552+ R .drawable .ic_playlist_add ));
553+
554+ returnedItems .add (new AdapterChoiceItem (getString (R .string .enqueue_key ),
555+ getString (R .string .enqueue_stream ), R .drawable .ic_add ));
548556 } else {
549557 // LinkType.NONE is never present because it's filtered out before
550558 // channels and playlist can be played as they contain a list of videos
@@ -1016,6 +1024,8 @@ public Consumer<Info> getResultHandler(final Choice choice) {
10161024 NavigationHelper .playOnBackgroundPlayer (this , playQueue , true );
10171025 } else if (choice .playerChoice .equals (popupPlayerKey )) {
10181026 NavigationHelper .playOnPopupPlayer (this , playQueue , true );
1027+ } else if (choice .playerChoice .equals (getString (R .string .enqueue_key ))) {
1028+ NavigationHelper .enqueueOnPlayer (this , playQueue );
10191029 }
10201030 };
10211031 }
0 commit comments