Merge "Fix URI comparison" into ub-mail-master

This commit is contained in:
Tony Mantler 2014-05-14 18:34:33 +00:00 committed by Android (Google) Code Review
commit 97ddf6e5fa
1 changed files with 2 additions and 2 deletions

View File

@ -1754,10 +1754,10 @@ public class EmailProvider extends ContentProvider {
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
LogUtils.d(TAG, "Update: " + uri);
// Handle this special case the fastest possible way
if (uri == INTEGRITY_CHECK_URI) {
if (INTEGRITY_CHECK_URI.equals(uri)) {
checkDatabases();
return 0;
} else if (uri == ACCOUNT_BACKUP_URI) {
} else if (ACCOUNT_BACKUP_URI.equals(uri)) {
return backupAccounts(getContext(), getDatabase(getContext()));
}