Don't use AsyncTask for beta calling capabilities refresh

Also, actually store the result in the directory db.

Fixes #6212
// FREEBIE
This commit is contained in:
Moxie Marlinspike
2017-02-12 11:27:26 -08:00
parent 6b737a3d48
commit 0efd6d9341
2 changed files with 21 additions and 18 deletions

View File

@@ -166,9 +166,11 @@ public class TextSecureDirectory {
SQLiteDatabase db = databaseHelper.getWritableDatabase();
ContentValues values = new ContentValues();
values.put(NUMBER, token.getNumber());
values.put(RELAY, token.getRelay());
values.put(REGISTERED, active ? 1 : 0);
values.put(TIMESTAMP, System.currentTimeMillis());
values.put(RELAY, token.getRelay());
values.put(VOICE, token.isVoice());
values.put(VIDEO, token.isVideo());
db.replace(TABLE_NAME, null, values);
}