create groups opened

This commit is contained in:
Eric House 2013-11-21 08:08:44 -08:00
parent ec2fb210be
commit 4748d9f459
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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,