mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-16 23:12:12 +00:00
Add optional onOpenListPicker callback to action sheet
This commit is contained in:
parent
158f65e7d6
commit
89c61662a4
1 changed files with 12 additions and 1 deletions
|
|
@ -46,6 +46,7 @@ fun NuvioPosterActionSheet(
|
|||
isWatched: Boolean,
|
||||
onDismiss: () -> Unit,
|
||||
onToggleLibrary: () -> Unit,
|
||||
onOpenListPicker: (() -> Unit)? = null,
|
||||
onToggleWatched: () -> Unit,
|
||||
) {
|
||||
if (item == null) return
|
||||
|
|
@ -82,6 +83,17 @@ fun NuvioPosterActionSheet(
|
|||
)
|
||||
}
|
||||
},
|
||||
onLongClick = if (onOpenListPicker != null) {
|
||||
{
|
||||
onOpenListPicker()
|
||||
coroutineScope.launch {
|
||||
dismissNuvioBottomSheet(
|
||||
sheetState = sheetState,
|
||||
onDismiss = onDismiss,
|
||||
)
|
||||
}
|
||||
}
|
||||
} else null,
|
||||
)
|
||||
NuvioBottomSheetDivider()
|
||||
NuvioBottomSheetActionRow(
|
||||
|
|
@ -200,4 +212,3 @@ private fun PosterSheetHeader(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue