use a different missing-dict explanation string when the name of the

inviter isn't known (relay case)
This commit is contained in:
Eric House 2012-11-25 09:58:14 -08:00
parent 2a1c028268
commit 7d6e393007
2 changed files with 8 additions and 2 deletions

View file

@ -2123,6 +2123,10 @@
play Crosswords using the wordlist %2$s (for play in %3$s), but it
is not installed. Would you like to download the wordlist or
decline the invitation?</string>
<string name="invite_dict_missing_body_nonamef">You have been invited to
play Crosswords using the wordlist %2$s (for play in %3$s), but it
is not installed. Would you like to download the wordlist or
decline the invitation?</string>
<string name="button_decline">Decline</string>
<string name="downloadingf">Downloading %s...</string>

View file

@ -133,8 +133,10 @@ public class MultiService {
String langStr = DictLangCache.getLangName( context, lang );
String dict = intent.getStringExtra( DICT );
String inviter = intent.getStringExtra( INVITER );
String msg = context.getString( R.string.invite_dict_missing_bodyf,
inviter, dict, langStr );
int msgID = (null == inviter) ? R.string.invite_dict_missing_body_nonamef
: R.string.invite_dict_missing_bodyf;
String msg = context.getString( msgID, inviter, dict, langStr );
return new AlertDialog.Builder( context )
.setTitle( R.string.invite_dict_missing_title )
.setMessage( msg)