Skip to content

Commit

Permalink
fix: crash that sometimes happens when longclicking emoji in compose
Browse files Browse the repository at this point in the history
I have no idea how it happens, nor why. But I am sure this will fix it
  • Loading branch information
LucasGGamerM committed Dec 17, 2023
1 parent b8fe1fd commit f1c55aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public void clearImage(int index){

@Override
public boolean onLongClick(){
if(!isRecentEmojiCategory) return false;
if(!isRecentEmojiCategory || requests.size() < getAbsoluteAdapterPosition()-1 || 0 > getAbsoluteAdapterPosition()-1) return false;
requests.remove(getAbsoluteAdapterPosition()-1);
getBindingAdapter().notifyItemRemoved(getAbsoluteAdapterPosition());
getBindingAdapter().notifyItemChanged(0);
Expand Down

0 comments on commit f1c55aa

Please sign in to comment.