From 1851882c8c4ab06aa66e17735acd596c2c97b95a Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Wed, 26 Aug 2009 15:33:52 -0700 Subject: [PATCH] Fix bug #2080302 * Was trying to retrieve an integer as a boolean in the ContentValues * The actual Exception (ClassCastException) was buried by ActivityThread --- src/com/android/email/provider/EmailContent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/provider/EmailContent.java b/src/com/android/email/provider/EmailContent.java index 065923b45..63c7f089a 100644 --- a/src/com/android/email/provider/EmailContent.java +++ b/src/com/android/email/provider/EmailContent.java @@ -1242,7 +1242,7 @@ public abstract class EmailContent { @Override public int update(Context context, ContentValues cv) { if (cv.containsKey(AccountColumns.IS_DEFAULT) && - cv.getAsBoolean(AccountColumns.IS_DEFAULT)) { + (cv.getAsInteger(AccountColumns.IS_DEFAULT) != 0)) { ArrayList ops = new ArrayList(); ContentValues cv1 = new ContentValues(); cv1.put(AccountColumns.IS_DEFAULT, 0);