revert calling finish() to avoid there being two activity instances,

as it leads to there often being none.
This commit is contained in:
Eric House 2015-06-03 06:27:09 -07:00
parent 74c13fa2cf
commit 39298931d2

View file

@ -45,11 +45,12 @@ public class GamesListActivity extends XWListActivity {
m_dlgt = new GamesListDelegate( this, savedInstanceState );
super.onCreate( savedInstanceState, m_dlgt );
// Trying to debug situation where two of this activity are running at
// once. finish()ing when Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT is
// passed is not the fix, but perhaps there's another
int flags = getIntent().getFlags();
if (0 != (flags & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT)) {
// DbgUtils.logf( "GamesListActivity.onCreate(); bad duplicate case; exiting" );
finish();
}
DbgUtils.logf( "GamesListActivity.onCreate(this=%H): flags=0x%x",
this, flags );
} // onCreate
// called when we're brought to the front (probably as a result of