Browse Source

Open tracker page when clicking logo (closes #5624)

arkon 3 năm trước cách đây
mục cha
commit
79da33b597

+ 4 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackHolder.kt

@@ -50,6 +50,10 @@ class TrackHolder(private val binding: TrackItemBinding, adapter: TrackAdapter)
 
         if (track != null) {
             val ctx = binding.trackTitle.context
+
+            binding.trackLogo.setOnClickListener {
+                listener.onOpenInBrowserClick(bindingAdapterPosition)
+            }
             binding.trackTitle.text = track.title
             binding.trackChapters.text = track.last_chapter_read.toString()
             if (track.total_chapters > 0) {