Merge change 22823 into eclair

* changes:
  Fix bug #2080302
This commit is contained in:
Android (Google) Code Review 2009-08-26 15:50:26 -07:00
commit 7ac828bce8

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);