File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/ui/components/menu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ data class LongPressAction(
309309 ): List <LongPressAction > {
310310 return buildPlayerActionList { ChannelTabPlayQueue (item.serviceId, item.url) } +
311311 buildShareActionList(item) +
312- listOf (
312+ listOfNotNull (
313313 Type .ShowChannelDetails .buildAction { context ->
314314 NavigationHelper .openChannelFragment(
315315 context.findFragmentActivity().supportFragmentManager,
@@ -318,14 +318,8 @@ data class LongPressAction(
318318 item.name,
319319 )
320320 },
321- ) +
322- (
323- onUnsubscribe
324- ?.let { onUnsubscribe ->
325- listOf (Type .Unsubscribe .buildAction { onUnsubscribe.run () })
326- }
327- ? : listOf ()
328- )
321+ onUnsubscribe?.let { r -> Type .Unsubscribe .buildAction { r.run () } }
322+ )
329323 }
330324
331325 @JvmStatic
You can’t perform that action at this time.
0 commit comments