Open tracker page when clicking logo (closes #5624)
This commit is contained in:
parent
7d67450e58
commit
79da33b597
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ class TrackHolder(private val binding: TrackItemBinding, adapter: TrackAdapter)
|
||||||
|
|
||||||
if (track != null) {
|
if (track != null) {
|
||||||
val ctx = binding.trackTitle.context
|
val ctx = binding.trackTitle.context
|
||||||
|
|
||||||
|
binding.trackLogo.setOnClickListener {
|
||||||
|
listener.onOpenInBrowserClick(bindingAdapterPosition)
|
||||||
|
}
|
||||||
binding.trackTitle.text = track.title
|
binding.trackTitle.text = track.title
|
||||||
binding.trackChapters.text = track.last_chapter_read.toString()
|
binding.trackChapters.text = track.last_chapter_read.toString()
|
||||||
if (track.total_chapters > 0) {
|
if (track.total_chapters > 0) {
|
||||||
|
|
Reference in a new issue