Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/src/main/java/org/schabi/newpipe/RouterActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,13 @@ private List<AdapterChoiceItem> getChoicesForService(final StreamingService serv
}
}

if (PlayerHolder.getInstance().getQueueSize() > 0) {
returnList.add(new AdapterChoiceItem(
getString(R.string.enqueue_key),
getString(R.string.enqueue_stream),
R.drawable.ic_add));
}

return returnList;
}

Expand Down Expand Up @@ -791,6 +798,9 @@ public Consumer<Info> getResultHandler(final Choice choice) {
NavigationHelper.playOnBackgroundPlayer(this, playQueue, true);
} else if (choice.playerChoice.equals(popupPlayerKey)) {
NavigationHelper.playOnPopupPlayer(this, playQueue, true);
} else if (choice.playerChoice.equals(
getString(R.string.enqueue_key))) {
NavigationHelper.enqueueOnPlayer(this, playQueue);
}
};
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/settings_keys.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1684,4 +1684,5 @@
<item>enqueue</item>
<item>disable</item>
</string-array>
<string name="enqueue_key">enqueue</string>
</resources>