|
|
@ -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) |
|
|
|