OnCheckStateChanged not called when I call "SetIsChecked"

Why is this not working, and how can I make it work?