From aa8bc85acd987d803c8740dc002da95392e5cfe1 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Wed, 21 Apr 2021 13:27:41 -0400 Subject: [PATCH] Fix long press vibration on items without actions in recents --- app/src/main/java/eu/kanade/tachiyomi/ui/recents/DateItem.kt | 5 +++++ .../kanade/tachiyomi/ui/recents/RecentMangaFooterHolder.kt | 5 +++++ .../eu/kanade/tachiyomi/ui/recents/RecentMangaHeaderItem.kt | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/DateItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/DateItem.kt index b942a57186..d5419149a4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/DateItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/DateItem.kt @@ -52,5 +52,10 @@ class DateItem(val date: Date, val addedString: Boolean = false) : AbstractHeade sectionText.text = if (item.addedString) itemView.context.getString(R.string.fetched_, dateString) else dateString } + + override fun onLongClick(view: View?): Boolean { + super.onLongClick(view) + return false + } } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaFooterHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaFooterHolder.kt index f7697e1a1d..270abbdccf 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaFooterHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaFooterHolder.kt @@ -21,4 +21,9 @@ class RecentMangaFooterHolder( } } } + + override fun onLongClick(view: View?): Boolean { + super.onLongClick(view) + return false + } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaHeaderItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaHeaderItem.kt index 07b7e85195..687e2a47ac 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaHeaderItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaHeaderItem.kt @@ -71,6 +71,11 @@ class RecentMangaHeaderItem(val recentsType: Int) : } ) } + + override fun onLongClick(view: View?): Boolean { + super.onLongClick(view) + return false + } } companion object {