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 {
|
root.setOnLongClickListener {
|
||||||
val playlistOptionsDialog = PlaylistOptionsBottomSheet(
|
val playlistOptionsDialog = PlaylistOptionsBottomSheet(
|
||||||
playlistId = playlist.id!!,
|
playlistId = playlist.id!!,
|
||||||
isOwner = true
|
playlistName = playlist.name!!,
|
||||||
|
isOwner = true,
|
||||||
)
|
)
|
||||||
playlistOptionsDialog.show(
|
playlistOptionsDialog.show(
|
||||||
childFragmentManager,
|
childFragmentManager,
|
||||||
|
@ -100,8 +100,9 @@ class SearchAdapter(
|
|||||||
NavigationHelper.navigateVideo(root.context, item.url)
|
NavigationHelper.navigateVideo(root.context, item.url)
|
||||||
}
|
}
|
||||||
val videoId = item.url!!.toID()
|
val videoId = item.url!!.toID()
|
||||||
|
val videoName = item.title!!
|
||||||
root.setOnLongClickListener {
|
root.setOnLongClickListener {
|
||||||
VideoOptionsBottomSheet(videoId)
|
VideoOptionsBottomSheet(videoId, videoName)
|
||||||
.show(childFragmentManager, VideoOptionsBottomSheet::class.java.name)
|
.show(childFragmentManager, VideoOptionsBottomSheet::class.java.name)
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
@ -181,7 +182,8 @@ class SearchAdapter(
|
|||||||
}
|
}
|
||||||
root.setOnLongClickListener {
|
root.setOnLongClickListener {
|
||||||
val playlistId = item.url!!.toID()
|
val playlistId = item.url!!.toID()
|
||||||
PlaylistOptionsBottomSheet(playlistId, false)
|
val playlistName = item.name!!
|
||||||
|
PlaylistOptionsBottomSheet(playlistId, playlistName, false)
|
||||||
.show(childFragmentManager, PlaylistOptionsBottomSheet::class.java.name)
|
.show(childFragmentManager, PlaylistOptionsBottomSheet::class.java.name)
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user