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 @@ -292,7 +292,7 @@ data class LongPressAction(
292292 ): List <LongPressAction > {
293293 return buildPlayerActionList { ChannelTabPlayQueue (item.serviceId, item.url) } +
294294 buildShareActionList(item) +
295- listOf (
295+ listOfNotNull (
296296 Type .ShowChannelDetails .buildAction { context ->
297297 NavigationHelper .openChannelFragment(
298298 context.findFragmentActivity().supportFragmentManager,
@@ -301,14 +301,8 @@ data class LongPressAction(
301301 item.name,
302302 )
303303 },
304- ) +
305- (
306- onUnsubscribe
307- ?.let { onUnsubscribe ->
308- listOf (Type .Unsubscribe .buildAction { onUnsubscribe.run () })
309- }
310- ? : listOf ()
311- )
304+ onUnsubscribe?.let { r -> Type .Unsubscribe .buildAction { r.run () } }
305+ )
312306 }
313307
314308 @JvmStatic
You can’t perform that action at this time.
0 commit comments