mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 15:32:01 +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,
|
isWatched: Boolean,
|
||||||
onDismiss: () -> Unit,
|
onDismiss: () -> Unit,
|
||||||
onToggleLibrary: () -> Unit,
|
onToggleLibrary: () -> Unit,
|
||||||
|
onOpenListPicker: (() -> Unit)? = null,
|
||||||
onToggleWatched: () -> Unit,
|
onToggleWatched: () -> Unit,
|
||||||
) {
|
) {
|
||||||
if (item == null) return
|
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()
|
NuvioBottomSheetDivider()
|
||||||
NuvioBottomSheetActionRow(
|
NuvioBottomSheetActionRow(
|
||||||
|
|
@ -200,4 +212,3 @@ private fun PosterSheetHeader(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue