diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java index afa376d3b..061ad599f 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java @@ -948,7 +948,7 @@ public class GameUtils { do { rint = Utils.nextRandomInt(); } while ( 0 == rint ); - DbgUtils.logf( "newGameID()=>%X", rint ); + DbgUtils.logf( "newGameID()=>%X (%d)", rint, rint ); return rint; } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NewGameDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NewGameDelegate.java index 7e9901172..b24c8baa0 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NewGameDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NewGameDelegate.java @@ -193,18 +193,16 @@ public class NewGameDelegate extends DelegateBase { break; case INVITE_FOR_BT: // user selected device case INVITE_FOR_SMS: - if ( Activity.RESULT_CANCELED != resultCode ) { - m_nameForBT = INVITE_FOR_BT == requestCode; - String[] remoteDevs = - data.getStringArrayExtra( InviteDelegate.DEVS ); - Assert.assertTrue( 1 == remoteDevs.length ); - m_remoteDev = remoteDevs[0]; + m_nameForBT = INVITE_FOR_BT == requestCode; + String[] remoteDevs = + data.getStringArrayExtra( InviteDelegate.DEVS ); + Assert.assertTrue( 1 == remoteDevs.length ); + m_remoteDev = remoteDevs[0]; - m_gameID = GameUtils.newGameID(); - m_gameName = getString( R.string.dft_name_fmt, - m_gameID & 0xFFFF ); - showDialog( DlgID.NAME_GAME ); - } + m_gameID = GameUtils.newGameID(); + m_gameName = getString( R.string.dft_name_fmt, + m_gameID & 0xFFFF ); + showDialog( DlgID.NAME_GAME ); break; } }