From 534032610c6701b63ab94f0336beeb9f4a830f2d Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 6 May 2009 10:53:37 -0700 Subject: [PATCH] Fix [Issue 1835218] IllegalStateException already initialized in SyncStorageEngine.init I used the wrong column name for the new account type. --- core/java/android/content/SyncStorageEngine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/content/SyncStorageEngine.java b/core/java/android/content/SyncStorageEngine.java index 64b626ddd1550..e240e65456e92 100644 --- a/core/java/android/content/SyncStorageEngine.java +++ b/core/java/android/content/SyncStorageEngine.java @@ -1174,7 +1174,7 @@ public class SyncStorageEngine extends Handler { HashMap map = new HashMap(); map.put("_id", "status._id as _id"); map.put("account", "stats.account as account"); - map.put("type", "stats.type as type"); + map.put("account_type", "stats.account_type as account_type"); map.put("authority", "stats.authority as authority"); map.put("totalElapsedTime", "totalElapsedTime"); map.put("numSyncs", "numSyncs"); @@ -1193,7 +1193,7 @@ public class SyncStorageEngine extends Handler { Cursor c = qb.query(db, null, null, null, null, null, null); while (c.moveToNext()) { String accountName = c.getString(c.getColumnIndex("account")); - String accountType = c.getString(c.getColumnIndex("type")); + String accountType = c.getString(c.getColumnIndex("account_type")); if (accountType == null) { accountType = "com.google.GAIA"; }