deselect games in group when it's collapsed

This commit is contained in:
Eric House 2014-08-10 15:42:43 -07:00
parent 007b390c42
commit feb9510b9d

View file

@ -1356,6 +1356,15 @@ public class GamesListDelegate extends ListDelegateBase
DBUtils.setGroupExpanded( m_activity, 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()