mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
cleanup; log non-hex gameid too for easier searching
This commit is contained in:
parent
b1ea1185f1
commit
94b51cf53b
2 changed files with 10 additions and 12 deletions
|
@ -948,7 +948,7 @@ public class GameUtils {
|
||||||
do {
|
do {
|
||||||
rint = Utils.nextRandomInt();
|
rint = Utils.nextRandomInt();
|
||||||
} while ( 0 == rint );
|
} while ( 0 == rint );
|
||||||
DbgUtils.logf( "newGameID()=>%X", rint );
|
DbgUtils.logf( "newGameID()=>%X (%d)", rint, rint );
|
||||||
return rint;
|
return rint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -193,18 +193,16 @@ public class NewGameDelegate extends DelegateBase {
|
||||||
break;
|
break;
|
||||||
case INVITE_FOR_BT: // user selected device
|
case INVITE_FOR_BT: // user selected device
|
||||||
case INVITE_FOR_SMS:
|
case INVITE_FOR_SMS:
|
||||||
if ( Activity.RESULT_CANCELED != resultCode ) {
|
m_nameForBT = INVITE_FOR_BT == requestCode;
|
||||||
m_nameForBT = INVITE_FOR_BT == requestCode;
|
String[] remoteDevs =
|
||||||
String[] remoteDevs =
|
data.getStringArrayExtra( InviteDelegate.DEVS );
|
||||||
data.getStringArrayExtra( InviteDelegate.DEVS );
|
Assert.assertTrue( 1 == remoteDevs.length );
|
||||||
Assert.assertTrue( 1 == remoteDevs.length );
|
m_remoteDev = remoteDevs[0];
|
||||||
m_remoteDev = remoteDevs[0];
|
|
||||||
|
|
||||||
m_gameID = GameUtils.newGameID();
|
m_gameID = GameUtils.newGameID();
|
||||||
m_gameName = getString( R.string.dft_name_fmt,
|
m_gameName = getString( R.string.dft_name_fmt,
|
||||||
m_gameID & 0xFFFF );
|
m_gameID & 0xFFFF );
|
||||||
showDialog( DlgID.NAME_GAME );
|
showDialog( DlgID.NAME_GAME );
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue