mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
define and handle new other-was-deleted error relay is about to start
returning.
This commit is contained in:
parent
e3f373039a
commit
cf84cce41a
3 changed files with 10 additions and 0 deletions
|
@ -311,6 +311,10 @@
|
|||
<string name="msg_dup_room">Another host has already registered a room using that name. Rename yours or retry later.</string>
|
||||
<string name="msg_lost_other">The relay has lost contact with another device in this game.</string>
|
||||
|
||||
<string name="msg_dev_deleted">One of the devices in this game has
|
||||
deleted the game. You will not be able to play any
|
||||
further.</string>
|
||||
|
||||
<string name="ids_badwords">Word[s] %s not found in dictionary.</string>
|
||||
<string name="badwords_accept"> Do you still want to accept this move?</string>
|
||||
<string name="badwords_lost"> Turn lost.</string>
|
||||
|
|
|
@ -409,6 +409,11 @@ public class CommsTransport extends Thread implements TransportProcs {
|
|||
strID = R.string.msg_lost_other;
|
||||
break;
|
||||
|
||||
case DELETED:
|
||||
strID = R.string.msg_dev_deleted;
|
||||
how = DIALOG;
|
||||
break;
|
||||
|
||||
case OLDFLAGS:
|
||||
case BADPROTO:
|
||||
case RELAYBUSY:
|
||||
|
|
|
@ -47,6 +47,7 @@ public interface TransportProcs {
|
|||
,NO_ROOM
|
||||
,DUP_ROOM
|
||||
,TOO_MANY
|
||||
,DELETED
|
||||
};
|
||||
void relayErrorProc( XWRELAY_ERROR relayErr );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue