* Was trying to retrieve an integer as a boolean in the ContentValues
* The actual Exception (ClassCastException) was buried by ActivityThread
This commit is contained in:
Marc Blank 2009-08-26 15:33:52 -07:00
parent 2ac94a9cc2
commit 1851882c8c

View File

@ -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<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>();
ContentValues cv1 = new ContentValues();
cv1.put(AccountColumns.IS_DEFAULT, 0);