Add channel details option to long-press menu (#5851)
Add dialog item to open channel details Use `List` as type of `entries` Put channel details item last Only show channel option when channel is present
This commit is contained in:
parent
3c35fdf21c
commit
a613b17990
3 changed files with 16 additions and 3 deletions
|
|
@ -24,6 +24,12 @@ public enum StreamDialogEntry {
|
|||
// enum values with DEFAULT actions //
|
||||
//////////////////////////////////////
|
||||
|
||||
show_channel_details(R.string.show_channel_details, (fragment, item) ->
|
||||
// For some reason `getParentFragmentManager()` doesn't work, but this does.
|
||||
NavigationHelper.openChannelFragment(fragment.getActivity().getSupportFragmentManager(),
|
||||
item.getServiceId(), item.getUploaderUrl(), item.getUploaderName())
|
||||
),
|
||||
|
||||
/**
|
||||
* Enqueues the stream automatically to the current PlayerType.<br>
|
||||
* <br>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue