|
|
@ -49,12 +49,10 @@ class ExploreAdapter(context: Context, private val scope: CoroutineScope, val ca |
|
|
|
ACache.get(context, "explore").remove(item.bookSourceUrl) |
|
|
|
ACache.get(context, "explore").remove(item.bookSourceUrl) |
|
|
|
notifyItemChanged(holder.layoutPosition) |
|
|
|
notifyItemChanged(holder.layoutPosition) |
|
|
|
} |
|
|
|
} |
|
|
|
R.id.menu_del -> { |
|
|
|
R.id.menu_del -> Coroutine.async(scope) { |
|
|
|
Coroutine.async(scope) { |
|
|
|
|
|
|
|
App.db.bookSourceDao().delete(item) |
|
|
|
App.db.bookSourceDao().delete(item) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
true |
|
|
|
true |
|
|
|
} |
|
|
|
} |
|
|
|
popupMenu.show() |
|
|
|
popupMenu.show() |
|
|
|