use autovalue for ParcelableKeyRing

This commit is contained in:
Vincent Breitmoser
2017-05-28 21:54:56 +02:00
parent 606c702762
commit 27f6f4ef6c
15 changed files with 52 additions and 88 deletions

View File

@@ -366,8 +366,7 @@ public class KeyserverSyncAdapterService extends Service {
first = false;
}
Log.d(Constants.TAG, "Updating key with fingerprint " + keyRing.mExpectedFingerprint +
" with a wait time of " + waitTime + "s");
Log.d(Constants.TAG, "Updating key with a wait time of " + waitTime + "s");
try {
Thread.sleep(waitTime * 1000);
} catch (InterruptedException e) {
@@ -465,7 +464,7 @@ public class KeyserverSyncAdapterService extends Service {
byte[] fingerprint = keyCursor.getBlob(INDEX_FINGERPRINT);
String hexKeyId = KeyFormattingUtils.convertKeyIdToHex(keyId);
// we aren't updating from keybase as of now
keyList.add(new ParcelableKeyRing(fingerprint, hexKeyId, null, null));
keyList.add(ParcelableKeyRing.createFromReference(fingerprint, hexKeyId, null, null));
}
keyCursor.close();