mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
add NFC to selfAddress of new games (when supported)
This commit is contained in:
parent
a18e19e574
commit
60bc43724d
2 changed files with 4 additions and 1 deletions
|
@ -642,6 +642,9 @@ public class GameConfigDelegate extends DelegateBase
|
||||||
// load if the first time through....
|
// load if the first time through....
|
||||||
if ( null == m_conTypes ) {
|
if ( null == m_conTypes ) {
|
||||||
m_conTypes = (CommsConnTypeSet)m_carOrig.conTypes.clone();
|
m_conTypes = (CommsConnTypeSet)m_carOrig.conTypes.clone();
|
||||||
|
if ( NFCUtils.nfcAvail( m_activity )[0] ) {
|
||||||
|
m_conTypes.add( CommsConnType.COMMS_CONN_NFC );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !m_isNewGame ) {
|
if ( !m_isNewGame ) {
|
||||||
|
|
|
@ -152,7 +152,7 @@ public class MultiMsgSink implements TransportProcs {
|
||||||
CommsAddrRec addr, CommsConnType typ,
|
CommsAddrRec addr, CommsConnType typ,
|
||||||
NetLaunchInfo nli, int timestamp )
|
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;
|
boolean success = false;
|
||||||
InviteMeans means = null;
|
InviteMeans means = null;
|
||||||
String target = null;
|
String target = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue