Fix setIdentityKeyTrust update statement
This commit is contained in:
parent
160e4017df
commit
31d375c2c3
|
@ -874,8 +874,8 @@ public class DatabaseBackend extends SQLiteOpenHelper {
|
||||||
ContentValues values = new ContentValues();
|
ContentValues values = new ContentValues();
|
||||||
values.put(AxolotlService.SQLiteAxolotlStore.TRUSTED, trust.ordinal());
|
values.put(AxolotlService.SQLiteAxolotlStore.TRUSTED, trust.ordinal());
|
||||||
int rows = db.update(AxolotlService.SQLiteAxolotlStore.IDENTITIES_TABLENAME, values,
|
int rows = db.update(AxolotlService.SQLiteAxolotlStore.IDENTITIES_TABLENAME, values,
|
||||||
AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ? "
|
AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ? AND "
|
||||||
+ AxolotlService.SQLiteAxolotlStore.NAME + " = ? "
|
+ AxolotlService.SQLiteAxolotlStore.NAME + " = ? AND "
|
||||||
+ AxolotlService.SQLiteAxolotlStore.FINGERPRINT + " = ? ",
|
+ AxolotlService.SQLiteAxolotlStore.FINGERPRINT + " = ? ",
|
||||||
selectionArgs);
|
selectionArgs);
|
||||||
return rows == 1;
|
return rows == 1;
|
||||||
|
|
Loading…
Reference in New Issue