drop click event when don't have any games (easier than uninstalling the handler when there are no child games)

This commit is contained in:
Eric House 2014-03-28 22:41:57 -07:00
parent fe14c88685
commit 6f373c6c11

View file

@ -155,9 +155,11 @@ public class GameListGroup extends LinearLayout
//////////////////////////////////////////////////
public void onClick( View view )
{
m_expanded = !m_expanded;
m_gcb.onGroupExpandedChanged( m_groupPosition, m_expanded );
setButton();
if ( 0 < m_nGames ) {
m_expanded = !m_expanded;
m_gcb.onGroupExpandedChanged( m_groupPosition, m_expanded );
setButton();
}
}
private void setButton()