Add optional onOpenListPicker callback to action sheet

This commit is contained in:
AdityasahuX07 2026-04-25 11:37:02 +05:30 committed by GitHub
parent 158f65e7d6
commit 89c61662a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(
}
}
}