From 162c9ce565b23b457e7b3c8ed02c1582cfc8127d Mon Sep 17 00:00:00 2001 From: Stypox Date: Sun, 19 Oct 2025 11:21:34 +0200 Subject: [PATCH] Address Isira review comment --- .../newpipe/ui/components/menu/LongPressAction.kt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressAction.kt b/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressAction.kt index 2b02d45b1..977f3158b 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressAction.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressAction.kt @@ -309,7 +309,7 @@ data class LongPressAction( ): List { return buildPlayerActionList { ChannelTabPlayQueue(item.serviceId, item.url) } + buildShareActionList(item) + - listOf( + listOfNotNull( Type.ShowChannelDetails.buildAction { context -> NavigationHelper.openChannelFragment( context.findFragmentActivity().supportFragmentManager, @@ -318,14 +318,8 @@ data class LongPressAction( item.name, ) }, - ) + - ( - onUnsubscribe - ?.let { onUnsubscribe -> - listOf(Type.Unsubscribe.buildAction { onUnsubscribe.run() }) - } - ?: listOf() - ) + onUnsubscribe?.let { r -> Type.Unsubscribe.buildAction { r.run() } } + ) } @JvmStatic