mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
passed an additional parameter to the constructor
This commit is contained in:
parent
20cdb8274e
commit
34e0f8673e
@ -73,7 +73,8 @@ class PlaylistsAdapter(
|
||||
root.setOnLongClickListener {
|
||||
val playlistOptionsDialog = PlaylistOptionsBottomSheet(
|
||||
playlistId = playlist.id!!,
|
||||
isOwner = true
|
||||
playlistName = playlist.name!!,
|
||||
isOwner = true,
|
||||
)
|
||||
playlistOptionsDialog.show(
|
||||
childFragmentManager,
|
||||
|
@ -100,8 +100,9 @@ class SearchAdapter(
|
||||
NavigationHelper.navigateVideo(root.context, item.url)
|
||||
}
|
||||
val videoId = item.url!!.toID()
|
||||
val videoName = item.title!!
|
||||
root.setOnLongClickListener {
|
||||
VideoOptionsBottomSheet(videoId)
|
||||
VideoOptionsBottomSheet(videoId, videoName)
|
||||
.show(childFragmentManager, VideoOptionsBottomSheet::class.java.name)
|
||||
true
|
||||
}
|
||||
@ -181,7 +182,8 @@ class SearchAdapter(
|
||||
}
|
||||
root.setOnLongClickListener {
|
||||
val playlistId = item.url!!.toID()
|
||||
PlaylistOptionsBottomSheet(playlistId, false)
|
||||
val playlistName = item.name!!
|
||||
PlaylistOptionsBottomSheet(playlistId, playlistName, false)
|
||||
.show(childFragmentManager, PlaylistOptionsBottomSheet::class.java.name)
|
||||
true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user