Fix long press vibration on items without actions in recents

This commit is contained in:
Jays2Kings 2021-04-21 13:27:41 -04:00
parent 27fef68e54
commit aa8bc85acd
3 changed files with 15 additions and 0 deletions

View File

@ -52,5 +52,10 @@ class DateItem(val date: Date, val addedString: Boolean = false) : AbstractHeade
sectionText.text = sectionText.text =
if (item.addedString) itemView.context.getString(R.string.fetched_, dateString) else dateString if (item.addedString) itemView.context.getString(R.string.fetched_, dateString) else dateString
} }
override fun onLongClick(view: View?): Boolean {
super.onLongClick(view)
return false
}
} }
} }

View File

@ -21,4 +21,9 @@ class RecentMangaFooterHolder(
} }
} }
} }
override fun onLongClick(view: View?): Boolean {
super.onLongClick(view)
return false
}
} }

View File

@ -71,6 +71,11 @@ class RecentMangaHeaderItem(val recentsType: Int) :
} }
) )
} }
override fun onLongClick(view: View?): Boolean {
super.onLongClick(view)
return false
}
} }
companion object { companion object {