mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
use Player %d when no default player name set
This commit is contained in:
parent
3df47f8fe2
commit
13e8667634
1 changed files with 6 additions and 1 deletions
|
@ -228,7 +228,12 @@ public class CommonPrefs {
|
|||
case 2: id = R.string.key_player3_name; break;
|
||||
case 3: id = R.string.key_player4_name; break;
|
||||
}
|
||||
return getString( context, id );
|
||||
String result = getString( context, id );
|
||||
if ( null == result || 0 == result.length() ) {
|
||||
String fmt = context.getString( R.string.playerf );
|
||||
result = String.format( fmt, num + 1 );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static CurGameInfo.XWPhoniesChoice
|
||||
|
|
Loading…
Reference in a new issue