mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
readd old assertions -- and fix compile error
This commit is contained in:
parent
b45fcf2aa6
commit
1d85a74a6c
1 changed files with 3 additions and 2 deletions
|
@ -193,6 +193,7 @@ public class BoardActivity extends XWActivity
|
||||||
if ( 1 == size ) {
|
if ( 1 == size ) {
|
||||||
BoardActivity self = s_this.iterator().next();
|
BoardActivity self = s_this.iterator().next();
|
||||||
Assert.assertNotNull( self.m_gi );
|
Assert.assertNotNull( self.m_gi );
|
||||||
|
Assert.assertNotNull( self.m_gameLock );
|
||||||
Assert.assertNotNull( self.m_jniThread );
|
Assert.assertNotNull( self.m_jniThread );
|
||||||
if ( gameID == self.m_gi.gameID ) {
|
if ( gameID == self.m_gi.gameID ) {
|
||||||
self.m_jniThread.handle( JNICmd.CMD_RECEIVE, msg, retAddr );
|
self.m_jniThread.handle( JNICmd.CMD_RECEIVE, msg, retAddr );
|
||||||
|
@ -222,6 +223,7 @@ public class BoardActivity extends XWActivity
|
||||||
if ( 1 == size ) {
|
if ( 1 == size ) {
|
||||||
BoardActivity self = s_this.iterator().next();
|
BoardActivity self = s_this.iterator().next();
|
||||||
Assert.assertNotNull( self.m_gi );
|
Assert.assertNotNull( self.m_gi );
|
||||||
|
Assert.assertNotNull( self.m_gameLock );
|
||||||
Assert.assertNotNull( self.m_jniThread );
|
Assert.assertNotNull( self.m_jniThread );
|
||||||
if ( rowid == self.m_rowid ) {
|
if ( rowid == self.m_rowid ) {
|
||||||
delivered = true; // even if no messages!
|
delivered = true; // even if no messages!
|
||||||
|
@ -2317,11 +2319,10 @@ public class BoardActivity extends XWActivity
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void noteSkip()
|
private static void noteSkip()
|
||||||
{
|
{
|
||||||
String msg = "BoardActivity.feedMessage[s](): skipped because "
|
String msg = "BoardActivity.feedMessage[s](): skipped because "
|
||||||
+ "too many open Boards";
|
+ "too many open Boards";
|
||||||
DbgUtils.logf(msg );
|
DbgUtils.logf(msg );
|
||||||
Utils.showToast( this, msg ); // probably don't want to ship this
|
|
||||||
}
|
}
|
||||||
} // class BoardActivity
|
} // class BoardActivity
|
||||||
|
|
Loading…
Add table
Reference in a new issue