Fetch sparse items when playing in background or popup

This commit is contained in:
Douile 2021-12-03 22:38:03 +00:00
parent ec7de2a6dc
commit 7cd3603bbb
No known key found for this signature in database
GPG Key ID: DAB413485BA6CFFD
1 changed files with 13 additions and 6 deletions

View File

@ -73,13 +73,20 @@ public enum StreamDialogEntry {
);
}),
start_here_on_background(R.string.start_here_on_background, (fragment, item) ->
start_here_on_background(R.string.start_here_on_background, (fragment, item) -> {
fetchItemInfoIfSparse(fragment, item,
fullItem -> {
NavigationHelper.playOnBackgroundPlayer(fragment.getContext(),
new SinglePlayQueue(item), true)),
fullItem, true);
});
}),
start_here_on_popup(R.string.start_here_on_popup, (fragment, item) ->
start_here_on_popup(R.string.start_here_on_popup, (fragment, item) -> {
fetchItemInfoIfSparse(fragment, item, fullItem -> {
NavigationHelper.playOnPopupPlayer(fragment.getContext(),
new SinglePlayQueue(item), true)),
fullItem, true);
});
}),
set_as_playlist_thumbnail(R.string.set_as_playlist_thumbnail, (fragment, item) -> {
}), // has to be set manually