pull/32/head
kunfei 5 years ago
parent 7933563e95
commit ee88472077
  1. 3
      app/src/main/java/io/legado/app/ui/main/explore/ExploreAdapter.kt

@ -46,8 +46,7 @@ class ExploreAdapter(context: Context, private val scope: CoroutineScope, val ca
popupMenu.setOnMenuItemClickListener { popupMenu.setOnMenuItemClickListener {
when (it.itemId) { when (it.itemId) {
R.id.menu_edit -> callBack.editSource(item.bookSourceUrl) R.id.menu_edit -> callBack.editSource(item.bookSourceUrl)
R.id.menu_top -> { R.id.menu_top -> callBack.toTop(item)
}
R.id.menu_refresh -> { R.id.menu_refresh -> {
ACache.get(context, "explore").remove(item.bookSourceUrl) ACache.get(context, "explore").remove(item.bookSourceUrl)
notifyItemChanged(holder.layoutPosition) notifyItemChanged(holder.layoutPosition)

Loading…
Cancel
Save