瀏覽代碼

Open tracker page when clicking logo (closes #5624)

arkon 3 年之前
父節點
當前提交
79da33b597
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackHolder.kt

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