mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
setTitle: it's either networked or not
This commit is contained in:
parent
2df8c68e60
commit
8974407a67
1 changed files with 6 additions and 18 deletions
|
@ -1148,26 +1148,14 @@ public class GameConfigDelegate extends DelegateBase
|
|||
|
||||
private void setTitle()
|
||||
{
|
||||
int strID = 0;
|
||||
for ( Iterator<CommsConnType> iter = m_conTypes.iterator();
|
||||
0 == strID && iter.hasNext(); ) {
|
||||
switch( iter.next() ) {
|
||||
case COMMS_CONN_RELAY:
|
||||
strID = R.string.title_gamenet_config_fmt;
|
||||
break;
|
||||
case COMMS_CONN_BT:
|
||||
strID = R.string.title_gamebt_config_fmt;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( 0 == strID ) {
|
||||
int strID;
|
||||
if ( null != m_conTypes && 0 < m_conTypes.size() ) {
|
||||
strID = R.string.title_gamenet_config_fmt;
|
||||
} else {
|
||||
strID = R.string.title_game_config_fmt;
|
||||
}
|
||||
|
||||
setTitle( getString( strID, GameUtils.getName( m_activity, m_rowid ) ) );
|
||||
String name = GameUtils.getName( m_activity, m_rowid );
|
||||
setTitle( getString( strID, name ) );
|
||||
}
|
||||
|
||||
private boolean localOnlyGame()
|
||||
|
|
Loading…
Reference in a new issue