mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
custom message when more than one player missing reminding to invite
more than one person.
This commit is contained in:
parent
57cfefb6a9
commit
546791d215
2 changed files with 11 additions and 2 deletions
|
@ -562,6 +562,11 @@
|
|||
<string name="invite_msgf">This game is missing %1$d remote
|
||||
player[s]. Would you like to invite someone to join -- assuming
|
||||
you haven\'t already?</string>
|
||||
|
||||
<string name="invite_multiple">\u0020(You are expecting multiple
|
||||
remote players. Be sure to address your invitation to
|
||||
that many people.)</string>
|
||||
|
||||
<string name="invite_subject">Let\'s play Crosswords</string>
|
||||
<string name="invite_bodyf">Tap on this link to start a game:
|
||||
%1$s .</string>
|
||||
|
|
|
@ -296,7 +296,11 @@ public class BoardActivity extends XWActivity
|
|||
case DLG_INVITE:
|
||||
AlertDialog ad = (AlertDialog)dialog;
|
||||
String format = getString( R.string.invite_msgf );
|
||||
ad.setMessage( String.format( format, m_missing) );
|
||||
String message = String.format( format, m_missing );
|
||||
if ( m_missing > 1 ) {
|
||||
message += getString( R.string.invite_multiple );
|
||||
}
|
||||
ad.setMessage( message );
|
||||
break;
|
||||
default:
|
||||
super.onPrepareDialog( id, dialog );
|
||||
|
@ -706,7 +710,7 @@ public class BoardActivity extends XWActivity
|
|||
|
||||
// Let's only invite for two-person games for now. Simple
|
||||
// case first....
|
||||
if ( nMissing == 1 /* && is_2_person_game() */ && !m_haveInvited ) {
|
||||
if ( !m_haveInvited ) {
|
||||
m_haveInvited = true;
|
||||
m_room = room;
|
||||
m_missing = nMissing;
|
||||
|
|
Loading…
Add table
Reference in a new issue