Skip to content

Commit

Permalink
fix: long click to delete wrong behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityLoop1308 authored and Bambooin committed Jul 26, 2022
1 parent 3447848 commit cb342c3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int in
view -> {
int position = itemViewHold.getLayoutPosition();
ClipboardDao.get().delete(list.get(position).getText());
list.remove(position);
notifyItemRemoved(position);
ToastUtils.showShort(R.string.delete_done);
return true;
Expand Down

0 comments on commit cb342c3

Please sign in to comment.