@@ -63,10 +63,10 @@ data class LongPressAction(
6363 Enqueue (R .string.enqueue, Icons .Default .AddToQueue ),
6464 EnqueueNext (R .string.enqueue_next_stream, Icons .Default .QueuePlayNext ),
6565 Background (R .string.controls_background_title, Icons .Default .Headset ),
66- BackgroundFromHere (R .string.background_from_here, Icons .Default .BackgroundFromHere ),
6766 Popup (R .string.controls_popup_title, Icons .Default .PictureInPicture ),
68- PopupFromHere (R .string.popup_from_here, Icons .Default .PopupFromHere ),
6967 Play (R .string.play, Icons .Default .PlayArrow ),
68+ BackgroundFromHere (R .string.background_from_here, Icons .Default .BackgroundFromHere ),
69+ PopupFromHere (R .string.popup_from_here, Icons .Default .PopupFromHere ),
7070 PlayFromHere (R .string.play_from_here, Icons .Default .PlayFromHere ),
7171 PlayWithKodi (R .string.play_with_kodi_title, Icons .Default .Cast ),
7272 Download (R .string.download, Icons .Default .Download ),
@@ -89,6 +89,16 @@ data class LongPressAction(
8989 enabled : (isPlayerRunning: Boolean ) -> Boolean = { true },
9090 action : (context: Context ) -> Unit ,
9191 ) = LongPressAction (this , action, enabled)
92+
93+ companion object {
94+ // ShowChannelDetails is not enabled by default, since navigating to channel details can
95+ // also be done by clicking on the uploader name in the long press menu header
96+ val DefaultEnabledActions : Array <Type > = arrayOf(
97+ Enqueue , EnqueueNext , Background , Popup , BackgroundFromHere , Download ,
98+ AddToPlaylist , Share , OpenInBrowser , MarkAsWatched , Delete ,
99+ Rename , SetAsPlaylistThumbnail , UnsetPlaylistThumbnail , Unsubscribe
100+ )
101+ }
92102 }
93103
94104 companion object {
0 commit comments