mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
deselect games in group when it's collapsed
This commit is contained in:
parent
007b390c42
commit
feb9510b9d
1 changed files with 9 additions and 0 deletions
|
@ -1356,6 +1356,15 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
DBUtils.setGroupExpanded( m_activity, groupID, expanded );
|
DBUtils.setGroupExpanded( m_activity, groupID, expanded );
|
||||||
|
|
||||||
m_adapter.setExpanded( groupID, expanded );
|
m_adapter.setExpanded( groupID, expanded );
|
||||||
|
|
||||||
|
// Deselect any games that are being hidden.
|
||||||
|
if ( !expanded ) {
|
||||||
|
long[] rows = DBUtils.getGroupGames( m_activity, groupID );
|
||||||
|
for ( long row : rows ) {
|
||||||
|
m_selGames.remove( row );
|
||||||
|
}
|
||||||
|
setTitleBar();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setTitleBar()
|
private void setTitleBar()
|
||||||
|
|
Loading…
Add table
Reference in a new issue