mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
Look at opening game immediately when relaunched via onNewIntent() as
well as via onCreate().
This commit is contained in:
parent
5ede3b19f0
commit
353832a7ca
1 changed files with 14 additions and 14 deletions
|
@ -217,13 +217,8 @@ public class GamesList extends XWListActivity
|
|||
RelayReceiver.RestartTimer( this );
|
||||
NetUtils.informOfDeaths( this );
|
||||
|
||||
Intent intent = getIntent();
|
||||
if ( null != intent ) {
|
||||
String[] relayIDs = intent
|
||||
.getStringArrayExtra( getString( R.string.relayids_extra ) );
|
||||
startFirstHasDict( relayIDs );
|
||||
}
|
||||
}
|
||||
startFirstHasDict( getIntent() );
|
||||
} // onCreate
|
||||
|
||||
@Override
|
||||
// called when we're brought to the front (probably as a result of
|
||||
|
@ -233,6 +228,7 @@ public class GamesList extends XWListActivity
|
|||
super.onNewIntent( intent );
|
||||
String id = getString( R.string.relayids_extra );
|
||||
invalRelayIDs( intent.getStringArrayExtra( id ) );
|
||||
startFirstHasDict( intent );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -555,8 +551,11 @@ public class GamesList extends XWListActivity
|
|||
|
||||
// Launch the first of these for which there's a dictionary
|
||||
// present.
|
||||
private void startFirstHasDict( String[] relayIDs )
|
||||
private void startFirstHasDict( Intent intent )
|
||||
{
|
||||
if ( null != intent ) {
|
||||
String[] relayIDs = intent
|
||||
.getStringArrayExtra( getString( R.string.relayids_extra ) );
|
||||
if ( null != relayIDs ) {
|
||||
for ( String relayID : relayIDs ) {
|
||||
String path = DBUtils.getPathFor( this, relayID );
|
||||
|
@ -567,4 +566,5 @@ public class GamesList extends XWListActivity
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue