mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
actually set the creation timestamp
This commit is contained in:
parent
13e8667634
commit
c9be5b464c
2 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue