tidy up IntentService

This commit is contained in:
Tim Bray 2014-04-30 13:49:48 -07:00
parent 4c693b4509
commit 18ed828608

View File

@ -748,8 +748,8 @@ public class KeychainIntentService extends IntentService
KeybaseKeyServer server = new KeybaseKeyServer(); KeybaseKeyServer server = new KeybaseKeyServer();
for (ImportKeysListEntry entry : entries) { for (ImportKeysListEntry entry : entries) {
// the keybase handle is in userId(1) // the keybase handle is in userId(1)
String username = entry.getUserIds().get(1); String keybaseID = entry.getUserIds().get(1);
byte[] downloadedKeyBytes = server.get(username).getBytes(); byte[] downloadedKeyBytes = server.get(keybaseID).getBytes();
// create PGPKeyRing object based on downloaded armored key // create PGPKeyRing object based on downloaded armored key
PGPKeyRing downloadedKey = null; PGPKeyRing downloadedKey = null;