From 546791d2155c68105a44462ae1d9422092579f38 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Thu, 30 Jun 2011 06:30:05 -0700 Subject: [PATCH] custom message when more than one player missing reminding to invite more than one person. --- xwords4/android/XWords4/res/values/strings.xml | 5 +++++ .../src/org/eehouse/android/xw4/BoardActivity.java | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index 984f35921..04f4626aa 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -562,6 +562,11 @@ This game is missing %1$d remote player[s]. Would you like to invite someone to join -- assuming you haven\'t already? + + \u0020(You are expecting multiple + remote players. Be sure to address your invitation to + that many people.) + Let\'s play Crosswords Tap on this link to start a game: %1$s . diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java index 1b469de19..98630bb64 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java @@ -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;