Fix getNumTrustedKeys

This commit is contained in:
Andreas Straub 2015-07-20 22:02:54 +02:00
parent 5ab0d5d1c1
commit 0ee64124fe
1 changed files with 4 additions and 2 deletions

View File

@ -863,11 +863,13 @@ public class DatabaseBackend extends SQLiteOpenHelper {
SQLiteDatabase db = getReadableDatabase();
String[] args = {
account.getUuid(),
name
name,
String.valueOf(AxolotlService.SQLiteAxolotlStore.Trust.TRUSTED.ordinal())
};
return DatabaseUtils.queryNumEntries(db, AxolotlService.SQLiteAxolotlStore.IDENTITIES_TABLENAME,
AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ?"
+ " AND " + AxolotlService.SQLiteAxolotlStore.NAME + " = ?",
+ " AND " + AxolotlService.SQLiteAxolotlStore.NAME + " = ?"
+ " AND " + AxolotlService.SQLiteAxolotlStore.TRUSTED + " = ?",
args
);
}