mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
Sometimes Android launches a second GamesList activity. Detect that,
and get out.
This commit is contained in:
parent
7a1b9701c5
commit
802ec24023
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,12 @@ public class GamesListActivity extends XWListActivity {
|
||||||
{
|
{
|
||||||
m_dlgt = new GamesListDelegate( this, savedInstanceState );
|
m_dlgt = new GamesListDelegate( this, savedInstanceState );
|
||||||
super.onCreate( savedInstanceState, m_dlgt );
|
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
|
} // onCreate
|
||||||
|
|
||||||
// called when we're brought to the front (probably as a result of
|
// called when we're brought to the front (probably as a result of
|
||||||
|
|
Loading…
Reference in a new issue