Skip to content

Commit

Permalink
fix duplicate contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
dakhnod committed Jul 16, 2018
1 parent 6aa57dd commit 0e240c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/d/d/meshenger/ContactSqlHelper.java
Expand Up @@ -70,7 +70,7 @@ public void insertContact(Contact c) throws ContactAlreadyAddedException {
values.put(columnPhoto, c.getPhoto());
values.put(columnInfo, c.getInfo());

Cursor cur = database.query(tableName, new String[]{columnID}, columnIdentifier + "=\"" + DatabaseUtils.sqlEscapeString(c.getIdentifier()) + "\"", null, "", "", "");
Cursor cur = database.query(tableName, new String[]{columnID}, columnIdentifier + "=" + DatabaseUtils.sqlEscapeString(c.getIdentifier()), null, "", "", "");
int length = cur.getCount();
cur.close();
if (length > 0) {
Expand Down

0 comments on commit 0e240c3

Please sign in to comment.