show in collapsed summary if game is over

This commit is contained in:
Eric House 2012-01-05 17:18:07 -08:00
parent 1ae2879fb7
commit 1fc286ee95
2 changed files with 5 additions and 1 deletions

View file

@ -70,6 +70,8 @@
form a complete game. We'll be in this state as long as the
game exists. -->
<string name="summary_relay_connf">Game in play in room \"%s\"</string>
<!-- Final state: game is over. -->
<string name="summary_relay_gameoverf">Game over in room \"%s\"</string>
<!-- Games that have ended are listed with this string -->
<string name="gameOver">Game over</string>

View file

@ -1,6 +1,6 @@
/* -*- compile-command: "cd ../../../../../../; ant debug install"; -*- */
/*
* Copyright 2009-2010 by Eric House (xwords@eehouse.org). All
* Copyright 2009 - 2012 by Eric House (xwords@eehouse.org). All
* rights reserved.
*
* This program is free software; you can redistribute it and/or
@ -153,6 +153,8 @@ public class GameSummary {
fmtID = R.string.summary_relay_conff;
} else if ( anyMissing() ) {
fmtID = R.string.summary_relay_waitf;
} else if ( gameOver ) {
fmtID = R.string.summary_relay_gameoverf;
} else {
fmtID = R.string.summary_relay_connf;
}