include room name in games list when pending

I can't send a manual invitation without that information
This commit is contained in:
Eric House 2017-03-28 07:10:45 -07:00
parent e7d4e93d12
commit c496cf5a1f
2 changed files with 7 additions and 2 deletions

View file

@ -200,8 +200,12 @@ public class GameSummary implements Serializable {
DBUtils.SentInvitesInfo si = DBUtils.getInvitesFor( context,
rowid );
if ( si.getMinPlayerCount() >= missing ) {
result = LocUtils.getString( context,
R.string.summary_invites_out );
result = ( null != roomName )
? LocUtils.getString( context, R.string
.summary_invites_out_fmt,
roomName )
: LocUtils.getString( context, R.string
.summary_invites_out );
}
}

View file

@ -62,6 +62,7 @@
<string name="summary_relay_gameover_fmt">Game over in room \"%1$s\"</string>
<string name="summary_invites_out">Players invited</string>
<string name="summary_invites_out_fmt">Players invited to room \"%1$s\"</string>
<!-- Games that have ended are listed with this string -->
<string name="gameOver">Game over</string>