mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
fix new game alert titles to differ depending on type being created
This commit is contained in:
parent
861aeeb53a
commit
2fa0ea3375
1 changed files with 6 additions and 3 deletions
|
@ -385,7 +385,7 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
for ( long row : rows ) {
|
for ( long row : rows ) {
|
||||||
alist.add( new GameRec( row ) );
|
alist.add( new GameRec( row ) );
|
||||||
}
|
}
|
||||||
DbgUtils.logf( "GamesListDelegate.makeChildren(%d) => %d kids", groupID, alist.size() );
|
// DbgUtils.logf( "GamesListDelegate.makeChildren(%d) => %d kids", groupID, alist.size() );
|
||||||
return alist;
|
return alist;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -806,8 +806,8 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
};
|
};
|
||||||
|
|
||||||
dialog = makeAlertBuilder()
|
dialog = makeAlertBuilder()
|
||||||
.setTitle( R.string.new_game )
|
|
||||||
.setMessage( "" ) // must have a message to change it later
|
.setMessage( "" ) // must have a message to change it later
|
||||||
|
.setTitle( "foo" )// ditto, but can't be empty (!)
|
||||||
.setPositiveButton( R.string.newgame_configure_first, lstnr )
|
.setPositiveButton( R.string.newgame_configure_first, lstnr )
|
||||||
.setNegativeButton( R.string.use_defaults, lstnr2 )
|
.setNegativeButton( R.string.use_defaults, lstnr2 )
|
||||||
.create();
|
.create();
|
||||||
|
@ -831,7 +831,10 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
break;
|
break;
|
||||||
case GAMES_LIST_NEWGAME:
|
case GAMES_LIST_NEWGAME:
|
||||||
String msg = getString( R.string.new_game_message );
|
String msg = getString( R.string.new_game_message );
|
||||||
if ( !m_nextIsSolo ) {
|
if ( m_nextIsSolo ) {
|
||||||
|
dialog.setTitle( R.string.new_game );
|
||||||
|
} else {
|
||||||
|
dialog.setTitle( R.string.new_game_networked );
|
||||||
msg += "\n\n" + getString( R.string.new_game_message_net );
|
msg += "\n\n" + getString( R.string.new_game_message_net );
|
||||||
}
|
}
|
||||||
((AlertDialog)dialog).setMessage( msg );
|
((AlertDialog)dialog).setMessage( msg );
|
||||||
|
|
Loading…
Reference in a new issue