diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index 5d099f2d4..16501b612 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -311,6 +311,10 @@ Another host has already registered a room using that name. Rename yours or retry later. The relay has lost contact with another device in this game. + One of the devices in this game has + deleted the game. You will not be able to play any + further. + Word[s] %s not found in dictionary. Do you still want to accept this move? Turn lost. diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/CommsTransport.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/CommsTransport.java index 33a7ccc7e..dd95ba806 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/CommsTransport.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/CommsTransport.java @@ -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: diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/TransportProcs.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/TransportProcs.java index 4838a9447..59891d7da 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/TransportProcs.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/TransportProcs.java @@ -47,6 +47,7 @@ public interface TransportProcs { ,NO_ROOM ,DUP_ROOM ,TOO_MANY + ,DELETED }; void relayErrorProc( XWRELAY_ERROR relayErr ); }