After some more investigation i found the problem:
In my adapter code: This code need to be changed:
final TodoTask currentTask = data.get(position);
final CheckBox status = (CheckBox) holder.status;
status.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
changeColorOnCheckBox(holder, status, currentTask);
}
});
To this code:
final TodoTask currentTask = data.get(position);
final CheckBox status = (CheckBox) holder.status;
status.setChecked(currentTask.isChecked());
status.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
changeColorOnCheckBox(holder, status, currentTask);
if(status.isChecked()){
Log.w("----------", "CheckboxT");
currentTask.setChecked(true);
}
else{
Log.w("----------", "CheckboxF");
currentTask.setChecked(false);
}
}
});
This will update the actual line's check box that is being pressed.
Big thanks for all who was trying to help! Very appreciated!