remove assert that was there just to prove a fix; use %b in logging.

This commit is contained in:
Andy2 2011-07-22 10:55:03 -07:00
parent 3563ca5855
commit acafc0a2df
3 changed files with 7 additions and 7 deletions

View file

@ -352,7 +352,10 @@ public class BoardActivity extends XWActivity
{
super.onResume();
m_handler = new Handler();
m_blockingDlgPosted = false;
setKeepScreenOn();
loadGame();
}
@ -780,7 +783,7 @@ public class BoardActivity extends XWActivity
public void setIsServer( boolean isServer )
{
Utils.logf( "setIsServer(%s)", isServer?"true":"false" );
Utils.logf( "setIsServer(%b)", isServer );
DeviceRole newRole = isServer? DeviceRole.SERVER_ISSERVER
: DeviceRole.SERVER_ISCLIENT;
if ( newRole != m_gi.serverRole ) {
@ -1050,9 +1053,6 @@ public class BoardActivity extends XWActivity
private void loadGame()
{
Assert.assertFalse( m_blockingDlgPosted ); // found the problem!
m_blockingDlgPosted = false;
if ( 0 == m_jniGamePtr ) {
Assert.assertNull( m_gameLock );
m_gameLock = new GameUtils.GameLock( m_name, true ).lock();

View file

@ -919,8 +919,8 @@ public class GameConfig extends XWActivity
if ( !m_notNetworkedGame ) {
m_car.ip_relay_seeksPublicRoom = m_joinPublicCheck.isChecked();
Utils.logf( "ip_relay_seeksPublicRoom: %s",
m_car.ip_relay_seeksPublicRoom?"true":"false" );
Utils.logf( "ip_relay_seeksPublicRoom: %b",
m_car.ip_relay_seeksPublicRoom );
m_car.ip_relay_advertiseRoom =
Utils.getChecked( this, R.id.advertise_new_room_check );
if ( m_car.ip_relay_seeksPublicRoom ) {

View file

@ -831,7 +831,7 @@ public class GameUtils {
lock.unlock();
}
}
Utils.logf( "feedMessages=>%s", draw?"true":"false" );
Utils.logf( "feedMessages=>%b", draw );
return draw;
}