mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
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:
parent
fe14c88685
commit
6f373c6c11
1 changed files with 5 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue