public void deregisterAll() { for (CheckableView child : mChildren) { child.setOnCheckedChangeListener(null); } mChildren.clear(); mCheckedId = NO_CHECKED_ID; }
// PUBLIC METHODS public void register(CheckableView child) { mChildren.add(child); if (getChildCount() == 1) { protectedCheck(child.getId()); } child.setOnCheckedChangeListener(mChildOnCheckedChangeListener); }
public void deregister(CheckableView child) { mChildren.remove(child); child.setOnCheckedChangeListener(null); if (child.getId() == mCheckedId) mCheckedId = NO_CHECKED_ID; }