actually set the creation timestamp

This commit is contained in:
Andy2 2011-05-20 22:51:30 -07:00
parent 13e8667634
commit c9be5b464c
2 changed files with 5 additions and 4 deletions

View file

@ -331,12 +331,13 @@ public class GameUtils {
DBUtils.saveGame( context, lock, bytes, setCreate );
}
public static GameLock saveGame( Context context, byte[] bytes )
public static GameLock saveGame( Context context, byte[] bytes,
boolean setCreate )
{
String name = newName( context );
GameLock lock =
new GameLock( name, true ).lock();
saveGame( context, bytes, lock, false );
saveGame( context, bytes, lock, setCreate );
return lock;
}
@ -345,7 +346,7 @@ public class GameUtils {
String path = null;
byte[] bytes = XwJNI.gi_to_stream( gi );
if ( null != bytes ) {
GameLock lock = saveGame( context, bytes );
GameLock lock = saveGame( context, bytes, true );
path = lock.getPath();
lock.unlock();
}

View file

@ -449,7 +449,7 @@ public class GamesList extends XWListActivity
} else {
byte[] stream = GameUtils.savedGame( this, path );
GameUtils.GameLock lock =
GameUtils.saveGame( this, stream );
GameUtils.saveGame( this, stream, true );
DBUtils.saveSummary( this, lock, summary );
lock.unlock();
}