don't include relay in rematch addressing

This commit is contained in:
Eric House 2021-04-01 13:26:25 -07:00
parent a1cabd6c4c
commit b9c34b2b31
2 changed files with 7 additions and 0 deletions

View file

@ -2956,6 +2956,10 @@ public class BoardDelegate extends DelegateBase
if ( doIt ) {
CommsConnTypeSet connTypes = summary.conTypes;
if ( BuildConfig.NO_NEW_RELAY ) {
connTypes.remove(CommsConnType.COMMS_CONN_RELAY);
relayID = null;
}
String newName = summary.getRematchName( activity );
Intent intent = GamesListDelegate
.makeRematchIntent( activity, rowid, groupID, gi, connTypes,

View file

@ -3092,6 +3092,9 @@ public class GamesListDelegate extends ListDelegateBase
.putExtra( REMATCH_NEWNAME_EXTRA, newName );
if ( null != addrTypes ) {
if ( BuildConfig.NO_NEW_RELAY ) {
Assert.assertTrueNR( !addrTypes.contains(CommsConnType.COMMS_CONN_RELAY) );
}
intent.putExtra( REMATCH_ADDRS_EXTRA, addrTypes.toInt() );
if ( null != btAddr ) {
Assert.assertTrue( addrTypes.contains( CommsConnType.COMMS_CONN_BT ) );