mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
fix reported crash: assertion copying non-network game
This commit is contained in:
parent
f805d7309f
commit
6dfaf8127f
1 changed files with 4 additions and 1 deletions
|
@ -843,8 +843,11 @@ public class GamesList extends XWExpandableListActivity
|
||||||
public void run() {
|
public void run() {
|
||||||
byte[] stream = GameUtils.savedGame( GamesList.this,
|
byte[] stream = GameUtils.savedGame( GamesList.this,
|
||||||
selRowIDs[0] );
|
selRowIDs[0] );
|
||||||
|
long groupID =
|
||||||
|
XWPrefs.getDefaultNewGameGroup(GamesList.this);
|
||||||
GameLock lock =
|
GameLock lock =
|
||||||
GameUtils.saveNewGame( GamesList.this, stream );
|
GameUtils.saveNewGame( GamesList.this, stream,
|
||||||
|
groupID );
|
||||||
DBUtils.saveSummary( GamesList.this, lock, smry );
|
DBUtils.saveSummary( GamesList.this, lock, smry );
|
||||||
m_selGames.add( lock.getRowid() );
|
m_selGames.add( lock.getRowid() );
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
Loading…
Reference in a new issue