Check for setExpanded for 2.4 support