From 4748d9f45986747ecb4325677ab2b226f29840b0 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 21 Nov 2013 08:08:44 -0800 Subject: [PATCH] create groups opened --- .../android/XWords4/src/org/eehouse/android/xw4/DBHelper.java | 2 +- .../android/XWords4/src/org/eehouse/android/xw4/DBUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java index afb0b7bcc..55ecae067 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java @@ -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 diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java index 4935ec7a3..3b753b288 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java @@ -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,