change method signature to be more clear what it's doing

This commit is contained in:
Eric House 2015-03-02 06:22:57 -08:00
parent 6964458c84
commit cdf7a88302
2 changed files with 4 additions and 4 deletions

View file

@ -690,11 +690,11 @@ public class DBUtils {
// Return creation time of newest game matching this nli, or null
// if none found.
public static Date getMostRecentCreate( Context context, NetLaunchInfo nli )
public static Date getMostRecentCreate( Context context, int gameID )
{
Date result = null;
String selection = String.format("%s=%d", DBHelper.GAMEID, nli.gameID() );
String selection = String.format("%s=%d", DBHelper.GAMEID, gameID );
String[] columns = { DBHelper.CREATE_TIME };
initDB( context );
@ -710,7 +710,7 @@ public class DBUtils {
cursor.close();
db.close();
}
DbgUtils.logf( "getMostRecentCreate(%d) => %H", nli.gameID(), result );
DbgUtils.logf( "getMostRecentCreate(%d) => %H", gameID, result );
return result;
}

View file

@ -1755,7 +1755,7 @@ public class GamesListDelegate extends ListDelegateBase
Assert.assertTrue( nli.isValid() );
Date create = null;
create = DBUtils.getMostRecentCreate( m_activity, nli );
create = DBUtils.getMostRecentCreate( m_activity, nli.gameID() );
if ( null == create ) {
if ( checkWarnNoDict( nli ) ) {