AccessibleRole () { if (myThirdStateEnabled) { // Return TOGGLE_BUTTON so that screen readers don't announce the "not checked" state return AccessibleRole.TOGGLE_BUTTON; } return super.getAccessibleRole(); }