mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
fix crash inviting via SMS/Text
Was asserting when NFC type came through. Bad.
This commit is contained in:
parent
9406297c03
commit
e4bc2d99ed
1 changed files with 6 additions and 2 deletions
|
@ -217,9 +217,13 @@ public class NetLaunchInfo implements Serializable {
|
|||
p2pMacAddress = data.getQueryParameter( P2P_MAC_KEY );
|
||||
doAdd = !hasAddrs && null != p2pMacAddress;
|
||||
break;
|
||||
case COMMS_CONN_NFC:
|
||||
doAdd = true;
|
||||
break;
|
||||
default:
|
||||
doAdd = false;
|
||||
Assert.fail();
|
||||
Log.d( TAG, "unexpected type: %s", typ );
|
||||
Assert.assertFalse( BuildConfig.DEBUG );
|
||||
}
|
||||
if ( doAdd ) {
|
||||
m_addrs.add( typ );
|
||||
|
@ -691,7 +695,7 @@ public class NetLaunchInfo implements Serializable {
|
|||
private void calcValid()
|
||||
{
|
||||
boolean valid = hasCommon() && null != m_addrs;
|
||||
// DbgUtils.logf( "calcValid(%s)", toString() );
|
||||
// Log.d( TAG, "calcValid(%s); valid (so far): %b", this, valid );
|
||||
if ( valid ) {
|
||||
for ( Iterator<CommsConnType> iter = m_addrs.iterator();
|
||||
valid && iter.hasNext(); ) {
|
||||
|
|
Loading…
Reference in a new issue