Construct contact string without StringBuilder.
The where clause is build using a set of constants, so it can actually
be build statically by the compiler instead of using a StringBuilder.
Change-Id: Ia3259c2a734152992e424835d70da07af918c67d
diff --git a/src/com/android/contacts/calllog/CallLogAdapter.java b/src/com/android/contacts/calllog/CallLogAdapter.java
index 37beba3..ea282fc 100644
--- a/src/com/android/contacts/calllog/CallLogAdapter.java
+++ b/src/com/android/contacts/calllog/CallLogAdapter.java
@@ -650,14 +650,9 @@
return;
}
- StringBuilder where = new StringBuilder();
- where.append(Calls.NUMBER);
- where.append(" = ? AND ");
- where.append(Calls.COUNTRY_ISO);
- where.append(" = ?");
-
mContext.getContentResolver().update(Calls.CONTENT_URI_WITH_VOICEMAIL, values,
- where.toString(), new String[]{ number, countryIso });
+ Calls.NUMBER + " = ? AND " + Calls.COUNTRY_ISO + " = ?",
+ new String[]{ number, countryIso });
}
/** Returns the contact information as stored in the call log. */