mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
revert calling finish() to avoid there being two activity instances,
as it leads to there often being none.
This commit is contained in:
parent
74c13fa2cf
commit
39298931d2
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue