mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
cleanup
This commit is contained in:
parent
cbe7b4a87d
commit
721bca316a
@ -206,7 +206,7 @@ class SearchAdapter(
|
|||||||
searchDescription.text = item.name
|
searchDescription.text = item.name
|
||||||
searchName.text = item.uploaderName
|
searchName.text = item.uploaderName
|
||||||
if (item.videos?.toInt() != -1) {
|
if (item.videos?.toInt() != -1) {
|
||||||
searchPlaylistNumber.text =
|
searchPlaylistVideos.text =
|
||||||
root.context.getString(R.string.videoCount, item.videos.toString())
|
root.context.getString(R.string.videoCount, item.videos.toString())
|
||||||
}
|
}
|
||||||
root.setOnClickListener {
|
root.setOnClickListener {
|
||||||
|
@ -50,7 +50,7 @@ class TrendingAdapter(
|
|||||||
ConnectionHelper.loadImage(trending.uploaderAvatar, channelImage)
|
ConnectionHelper.loadImage(trending.uploaderAvatar, channelImage)
|
||||||
|
|
||||||
root.setOnClickListener {
|
root.setOnClickListener {
|
||||||
NavigationHelper.navigateChannel(root.context, trending.url)
|
NavigationHelper.navigateVideo(root.context, trending.url)
|
||||||
}
|
}
|
||||||
root.setOnLongClickListener {
|
root.setOnLongClickListener {
|
||||||
val videoId = trending.url!!.replace("/watch?v=", "")
|
val videoId = trending.url!!.replace("/watch?v=", "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user