Fix bug #2080302
* 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:
parent
2ac94a9cc2
commit
1851882c8c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user