go back to overriding onPause and onResume, but don't tear down the game unless isFinishing() returns true

This commit is contained in:
Eric House 2014-02-08 16:50:27 -08:00
parent 5e3c26d453
commit b56d990a04

View file

@ -593,18 +593,21 @@ public class BoardActivity extends XWActivity
} // onCreate } // onCreate
@Override @Override
protected void onStop() protected void onPause()
{ {
if ( isFinishing() ) {
m_handler = null; m_handler = null;
ConnStatusHandler.setHandler( null ); ConnStatusHandler.setHandler( null );
waitCloseGame( true ); waitCloseGame( true );
super.onStop(); }
super.onPause();
} }
@Override @Override
protected void onStart() protected void onResume()
{ {
super.onStart(); super.onResume();
if ( null == m_handler ) {
m_handler = new Handler(); m_handler = new Handler();
m_blockingDlgID = BLOCKING_DLG_NONE; m_blockingDlgID = BLOCKING_DLG_NONE;
@ -614,6 +617,7 @@ public class BoardActivity extends XWActivity
ConnStatusHandler.setHandler( this ); ConnStatusHandler.setHandler( this );
} }
}
@Override @Override
protected void onSaveInstanceState( Bundle outState ) protected void onSaveInstanceState( Bundle outState )