Sometimes Android launches a second GamesList activity. Detect that,

and get out.
This commit is contained in:
Eric House 2015-06-02 07:43:07 -07:00
parent 7a1b9701c5
commit 802ec24023

View file

@ -44,6 +44,12 @@ public class GamesListActivity extends XWListActivity {
{
m_dlgt = new GamesListDelegate( this, savedInstanceState );
super.onCreate( savedInstanceState, m_dlgt );
int flags = getIntent().getFlags();
if (0 != (flags & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT)) {
// DbgUtils.logf( "GamesListActivity.onCreate(); bad duplicate case; exiting" );
finish();
}
} // onCreate
// called when we're brought to the front (probably as a result of