mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
set selection on children being reused
This commit is contained in:
parent
4748d9f459
commit
9820f6bf6b
1 changed files with 4 additions and 1 deletions
|
@ -202,6 +202,7 @@ public class GameListAdapter implements ExpandableListAdapter {
|
||||||
GameListItem child = (GameListItem)convertView;
|
GameListItem child = (GameListItem)convertView;
|
||||||
long rowid = getRowIDFor( groupPosition, childPosition );
|
long rowid = getRowIDFor( groupPosition, childPosition );
|
||||||
if ( child.getRowID() == rowid ) {
|
if ( child.getRowID() == rowid ) {
|
||||||
|
child.setSelected( m_cb.getSelected( child ) );
|
||||||
result = child;
|
result = child;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -387,7 +388,9 @@ public class GameListAdapter implements ExpandableListAdapter {
|
||||||
int pos = getGroupPosition( iter.next() );
|
int pos = getGroupPosition( iter.next() );
|
||||||
if ( 0 <= pos ) { // still exists?
|
if ( 0 <= pos ) { // still exists?
|
||||||
GameListGroup group = getGroupItemFor( pos );
|
GameListGroup group = getGroupItemFor( pos );
|
||||||
group.setSelected( false );
|
if ( null != group ) {
|
||||||
|
group.setSelected( false );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue