diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-01 15:07:20 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-01 15:07:20 +0100 |
commit | 53d9c9997a508985f0e19aba928bfa25c80ba23e (patch) | |
tree | 5e79bfe04db8d51091bcf9b94baa979217e9d542 /src/de/gultsch/chat/persistance | |
parent | 43531113b798cda6b2f76257641f38b0af986437 (diff) |
more cleanup. more listeners
Diffstat (limited to 'src/de/gultsch/chat/persistance')
-rw-r--r-- | src/de/gultsch/chat/persistance/DatabaseBackend.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/de/gultsch/chat/persistance/DatabaseBackend.java b/src/de/gultsch/chat/persistance/DatabaseBackend.java index 85c6df52..10dd0b6e 100644 --- a/src/de/gultsch/chat/persistance/DatabaseBackend.java +++ b/src/de/gultsch/chat/persistance/DatabaseBackend.java @@ -111,9 +111,9 @@ public class DatabaseBackend extends SQLiteOpenHelper { return list; } - public Conversation findConversation(Account account, Contact contact) { + public Conversation findConversation(Account account, String contactJid) { SQLiteDatabase db = this.getReadableDatabase(); - String[] selectionArgs = { account.getUuid(), contact.getJid() }; + String[] selectionArgs = { account.getUuid(), contactJid }; Cursor cursor = db.query(Conversation.TABLENAME, null, Conversation.ACCOUNT + "=? AND " + Conversation.CONTACT + "=?", selectionArgs, null, null, null); |