from GamesList.onNewIntent, launch the first changed game rather than

just invalidating all changed list items.
This commit is contained in:
Andy2 2011-02-28 06:37:29 -08:00
parent ed8707fb4b
commit 20ad465b96

View file

@ -243,6 +243,7 @@ public class GamesList extends XWListActivity
m_handler.post( new Runnable() { m_handler.post( new Runnable() {
public void run() { public void run() {
invalRelayIDs( relayIDs ); invalRelayIDs( relayIDs );
startFirstHasDict( relayIDs );
} }
} ); } );
} }
@ -514,11 +515,8 @@ public class GamesList extends XWListActivity
// Launch the first of these for which there's a dictionary // Launch the first of these for which there's a dictionary
// present. // present.
private void startFirstHasDict( Intent intent ) private void startFirstHasDict( String[] relayIDs )
{ {
if ( null != intent ) {
String[] relayIDs = intent
.getStringArrayExtra( getString( R.string.relayids_extra ) );
if ( null != relayIDs ) { if ( null != relayIDs ) {
for ( String relayID : relayIDs ) { for ( String relayID : relayIDs ) {
String path = DBUtils.getPathFor( this, relayID ); String path = DBUtils.getPathFor( this, relayID );
@ -529,5 +527,13 @@ public class GamesList extends XWListActivity
} }
} }
} }
private void startFirstHasDict( Intent intent )
{
if ( null != intent ) {
String[] relayIDs = intent
.getStringArrayExtra( getString( R.string.relayids_extra ) );
startFirstHasDict( relayIDs );
}
} }
} }