Open tracker page when clicking logo (closes #5624)

This commit is contained in:
arkon 2021-08-15 10:38:10 -04:00
parent 7d67450e58
commit 79da33b597

View File

@ -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) {