From d88c050ab2717a8d881e3c44230c65bb37622b8b Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 24 Apr 2022 23:07:56 -0700 Subject: [PATCH] don't include relay in default address for new games!!! --- .../app/src/main/java/org/eehouse/android/xw4/XWPrefs.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 d9840b23c..e197c9130 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 @@ -491,7 +491,9 @@ public class XWPrefs { result = new CommsConnTypeSet(); if ( getRelayEnabled( context ) ) { result.add( CommsConnType.COMMS_CONN_MQTT ); - result.add( CommsConnType.COMMS_CONN_RELAY ); + if ( !BuildConfig.NO_NEW_RELAY ) { + result.add( CommsConnType.COMMS_CONN_RELAY ); + } } if ( BTUtils.BTEnabled() ) { result.add( CommsConnType.COMMS_CONN_BT );