save/load games in onStop/onStart rather than onPause/onResume so we don't do it as often, and specifically not every time the LookupActivity is pushed. This is an experiment.

This commit is contained in:
Eric House 2014-02-07 07:40:34 -08:00
parent d97784ba13
commit a388351219

View file

@ -589,18 +589,18 @@ public class BoardActivity extends XWActivity
} // onCreate } // onCreate
@Override @Override
protected void onPause() protected void onStop()
{ {
m_handler = null; m_handler = null;
ConnStatusHandler.setHandler( null ); ConnStatusHandler.setHandler( null );
waitCloseGame( true ); waitCloseGame( true );
super.onPause(); super.onStop();
} }
@Override @Override
protected void onResume() protected void onStart()
{ {
super.onResume(); super.onStart();
m_handler = new Handler(); m_handler = new Handler();
m_blockingDlgID = BLOCKING_DLG_NONE; m_blockingDlgID = BLOCKING_DLG_NONE;