mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
make newFrom highlight the new game; make reset preserve the selection
This commit is contained in:
parent
33252c929c
commit
73e1ac0a93
1 changed files with 2 additions and 0 deletions
|
@ -598,6 +598,7 @@ public class GamesList extends XWExpandableListActivity
|
||||||
case NEW_FROM:
|
case NEW_FROM:
|
||||||
long curID = (Long)params[0];
|
long curID = (Long)params[0];
|
||||||
long newid = GameUtils.dupeGame( GamesList.this, curID );
|
long newid = GameUtils.dupeGame( GamesList.this, curID );
|
||||||
|
m_selGames.add( newid );
|
||||||
if ( null != m_adapter ) {
|
if ( null != m_adapter ) {
|
||||||
m_adapter.inval( newid );
|
m_adapter.inval( newid );
|
||||||
}
|
}
|
||||||
|
@ -831,6 +832,7 @@ public class GamesList extends XWExpandableListActivity
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case R.id.list_item_reset:
|
case R.id.list_item_reset:
|
||||||
|
keepSels = true;
|
||||||
showConfirmThen( R.string.confirm_reset, R.string.button_reset,
|
showConfirmThen( R.string.confirm_reset, R.string.button_reset,
|
||||||
GamesActions.RESET_GAMES.ordinal(), selRowIDs );
|
GamesActions.RESET_GAMES.ordinal(), selRowIDs );
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue