add NFC to selfAddress of new games (when supported)

This commit is contained in:
Eric House 2023-01-25 10:29:27 -08:00
parent a18e19e574
commit 60bc43724d
2 changed files with 4 additions and 1 deletions

View file

@ -642,6 +642,9 @@ public class GameConfigDelegate extends DelegateBase
// load if the first time through....
if ( null == m_conTypes ) {
m_conTypes = (CommsConnTypeSet)m_carOrig.conTypes.clone();
if ( NFCUtils.nfcAvail( m_activity )[0] ) {
m_conTypes.add( CommsConnType.COMMS_CONN_NFC );
}
}
if ( !m_isNewGame ) {

View file

@ -152,7 +152,7 @@ public class MultiMsgSink implements TransportProcs {
CommsAddrRec addr, CommsConnType typ,
NetLaunchInfo nli, int timestamp )
{
Log.d( TAG, "sendInvite(%s, %s, %s)", addr, typ, nli );
Log.d( TAG, "sendInvite(to=%s, typ=%s, nli=%s)", addr, typ, nli );
boolean success = false;
InviteMeans means = null;
String target = null;