mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 12:49:02 +00:00
Merge pull request #224 from HabitRPG/checklist-adapter-out-of-bounds
Fix OutOfBounds in Array on CheckListAdapter. Closes #221
This commit is contained in:
commit
f250e87c98
1 changed files with 4 additions and 2 deletions
|
|
@ -63,8 +63,10 @@ public class CheckListAdapter extends RecyclerView.Adapter<CheckListAdapter.Item
|
|||
|
||||
@Override
|
||||
public void onItemDismiss(int position) {
|
||||
mItems.remove(position);
|
||||
notifyItemRemoved(position);
|
||||
if(position >= 0 && position < mItems.size()){
|
||||
mItems.remove(position);
|
||||
notifyItemRemoved(position);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue