I have implemented the recycler view multiple item selection by changing the background color of item when selected.When i remove those items from the model, items get remov
Your problem is in when (holder.is_selected.isChecked) {
You should have the information if an item is checked on the ViewModel, not on the View and most definitely not in the ViewHolder.
It should be something like if(residentItems.get(posistion).isSelected){ (Using when is overkill for binary cases)