set m_gameOver when it's first known.

This commit is contained in:
Eric House 2012-12-02 18:09:15 -08:00
parent e5bb360537
commit 9eea15185c

View file

@ -1725,13 +1725,14 @@ public class BoardActivity extends XWActivity
startChatActivity();
}
if ( m_overNotShown ) {
Boolean auto = null;
boolean auto = false;
if ( 0 != (GameSummary.MSG_FLAGS_GAMEOVER & flags) ) {
auto = new Boolean( false );
m_gameOver = true;
} else if ( DBUtils.gameOver( this, m_rowid ) ) {
auto = new Boolean( true );
m_gameOver = true;
auto = true;
}
if ( null != auto ) {
if ( m_gameOver ) {
m_overNotShown = false;
m_jniThread.handle( JNICmd.CMD_POST_OVER, auto );
}