mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +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
|
// Return creation time of newest game matching this nli, or null
|
||||||
// if none found.
|
// if none found.
|
||||||
public static Date getMostRecentCreate( Context context, NetLaunchInfo nli )
|
public static Date getMostRecentCreate( Context context, int gameID )
|
||||||
{
|
{
|
||||||
Date result = null;
|
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 };
|
String[] columns = { DBHelper.CREATE_TIME };
|
||||||
|
|
||||||
initDB( context );
|
initDB( context );
|
||||||
|
@ -710,7 +710,7 @@ public class DBUtils {
|
||||||
cursor.close();
|
cursor.close();
|
||||||
db.close();
|
db.close();
|
||||||
}
|
}
|
||||||
DbgUtils.logf( "getMostRecentCreate(%d) => %H", nli.gameID(), result );
|
DbgUtils.logf( "getMostRecentCreate(%d) => %H", gameID, result );
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1755,7 +1755,7 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
Assert.assertTrue( nli.isValid() );
|
Assert.assertTrue( nli.isValid() );
|
||||||
|
|
||||||
Date create = null;
|
Date create = null;
|
||||||
create = DBUtils.getMostRecentCreate( m_activity, nli );
|
create = DBUtils.getMostRecentCreate( m_activity, nli.gameID() );
|
||||||
|
|
||||||
if ( null == create ) {
|
if ( null == create ) {
|
||||||
if ( checkWarnNoDict( nli ) ) {
|
if ( checkWarnNoDict( nli ) ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue