mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 04:39:04 +00:00
#221 Change validation
This commit is contained in:
parent
f709a129b4
commit
3872a85868
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ public class CheckListAdapter extends RecyclerView.Adapter<CheckListAdapter.Item
|
|||
|
||||
@Override
|
||||
public void onItemDismiss(int position) {
|
||||
if(position != -1 && position > 0 && !mItems.isEmpty()){
|
||||
if(position >= 0 && position < mItems.size()){
|
||||
mItems.remove(position);
|
||||
notifyItemRemoved(position);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue