Address Isira review comment

This commit is contained in:
Stypox 2025-10-19 11:21:34 +02:00
parent 701e8c59c5
commit 162c9ce565
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -309,7 +309,7 @@ data class LongPressAction(
): List<LongPressAction> {
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