mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
change method signature to be more clear what it's doing
This commit is contained in:
parent
6964458c84
commit
cdf7a88302
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in a new issue