diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameConfigDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameConfigDelegate.java index 5a1ba9e5b..0b29fd6e7 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameConfigDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameConfigDelegate.java @@ -609,9 +609,7 @@ public class GameConfigDelegate extends DelegateBase m_carOrig = XwJNI.comms_getAddr( gamePtr ); m_remoteAddrs = XwJNI.comms_getAddrs( gamePtr ); } else if ( !localOnlyGame() ) { - String relayName = XWPrefs.getHostName( m_activity ); - int relayPort = XWPrefs.getDefaultRelayPort( m_activity ); - m_carOrig = XwJNI.comms_getInitialAddr( relayName, relayPort ); + m_carOrig = XwJNI.comms_getInitialAddr(); } else { // Leaving this null breaks stuff: an empty set, rather than a // null one, represents a standalone game diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NetLaunchInfo.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NetLaunchInfo.java index 8ed10e7e7..27a105f1d 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NetLaunchInfo.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NetLaunchInfo.java @@ -484,9 +484,7 @@ public class NetLaunchInfo implements Serializable { result.conTypes.add( typ ); switch( typ ) { case COMMS_CONN_RELAY: - String relayName = XWPrefs.getHostName( context ); - int relayPort = XWPrefs.getDefaultRelayPort( context ); - result.setRelayParams( relayName, relayPort, room ); + Assert.failDbg(); break; case COMMS_CONN_BT: result.setBTParams( btAddress, btName ); diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWPrefs.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWPrefs.java index 00a6c4e09..ce4285309 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWPrefs.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWPrefs.java @@ -103,17 +103,6 @@ public class XWPrefs { setPrefsBoolean( context, R.string.key_hide_newgames, set ); } - public static int getDefaultRelayPort( Context context ) - { - String val = getPrefsString( context, R.string.key_relay_port ); - int result = 0; - try { - result = Integer.parseInt( val ); - } catch ( Exception ex ) { - } - return result; - } - public static String getDefaultUpdateUrl( Context context ) { String result = getWithHost( context, R.string.key_update_url_path ); diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/CommsAddrRec.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/CommsAddrRec.java index 4ca8cb778..11decd269 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/CommsAddrRec.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/CommsAddrRec.java @@ -428,10 +428,7 @@ public class CommsAddrRec implements Serializable { { switch ( typ ) { case COMMS_CONN_RELAY: - String room = GameUtils.makeRandomID(); - String host = XWPrefs.getHostName( context ); - int port = XWPrefs.getDefaultRelayPort( context ); - setRelayParams( host, port, room ); + Assert.failDbg(); break; case COMMS_CONN_BT: String[] strs = BTUtils.getBTNameAndAddress(); diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/XwJNI.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/XwJNI.java index e2a42fe7e..52ead2256 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/XwJNI.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/jni/XwJNI.java @@ -274,8 +274,7 @@ public class XwJNI { return nli_from_stream( getJNI().m_ptrGlobals, stream ); } - public static native CommsAddrRec comms_getInitialAddr( String relayHost, - int relayPort ); + public static native CommsAddrRec comms_getInitialAddr(); public static native String comms_getUUID(); // Game methods diff --git a/xwords4/android/app/src/main/res/values/common_rsrc.xml b/xwords4/android/app/src/main/res/values/common_rsrc.xml index 94362f562..2222d5642 100644 --- a/xwords4/android/app/src/main/res/values/common_rsrc.xml +++ b/xwords4/android/app/src/main/res/values/common_rsrc.xml @@ -57,7 +57,6 @@ key_clr_bonushint_dark key_board_line_width_dark - key_relay_port2 key_update_url_path key_relay_url_path key_mqtt_url_path diff --git a/xwords4/android/app/src/main/res/values/strings.xml b/xwords4/android/app/src/main/res/values/strings.xml index 26969d996..947ae19d8 100644 --- a/xwords4/android/app/src/main/res/values/strings.xml +++ b/xwords4/android/app/src/main/res/values/strings.xml @@ -2284,10 +2284,8 @@ Network stats Show invites Game network stats - Relay game port MQTT port MQTT QOS - Relay device port %1$s/%2$s Write games to SD card Load games from SD card diff --git a/xwords4/android/app/src/main/res/xml/prefs_dbg_net.xml b/xwords4/android/app/src/main/res/xml/prefs_dbg_net.xml index 642640e24..ae320101c 100644 --- a/xwords4/android/app/src/main/res/xml/prefs_dbg_net.xml +++ b/xwords4/android/app/src/main/res/xml/prefs_dbg_net.xml @@ -44,19 +44,6 @@ android:defaultValue="@string/default_relay_url_path" /> - - -