Issue #352

This commit should fix Issue 352 by replacing Button with CompoundButton in updateUI() method and invoking setChecked().