mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-02 06:20:14 +01:00
create groups opened
This commit is contained in:
parent
ec2fb210be
commit
4748d9f459
2 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||
long curGroup = db.insert( TABLE_NAME_GROUPS, null, values );
|
||||
values = new ContentValues();
|
||||
values.put( GROUPNAME, m_context.getString(R.string.group_new_games) );
|
||||
values.put( EXPANDED, 0 );
|
||||
values.put( EXPANDED, 1 );
|
||||
long newGroup = db.insert( TABLE_NAME_GROUPS, null, values );
|
||||
|
||||
// place all existing games in the initial unnamed group
|
||||
|
|
|
@ -1178,7 +1178,7 @@ public class DBUtils {
|
|||
values.put( DBHelper.GROUPNAME, name );
|
||||
values.put( DBHelper.EXPANDED, 1 );
|
||||
|
||||
initDB( context );
|
||||
// initDB( context ); <- getGroups will have called this
|
||||
synchronized( s_dbHelper ) {
|
||||
SQLiteDatabase db = s_dbHelper.getWritableDatabase();
|
||||
rowid = db.insert( DBHelper.TABLE_NAME_GROUPS, null,
|
||||
|
|
Loading…
Reference in a new issue