From 018ca6abad3c0cca4d2116b99b3d204260b769e5 Mon Sep 17 00:00:00 2001 From: Tim Bray Date: Mon, 15 Sep 2014 15:11:04 -0700 Subject: Fix construction of algorithmID in Keybase result lists --- .../org/sufficientlysecure/keychain/keyimport/KeybaseKeyserver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure') diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/keyimport/KeybaseKeyserver.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/keyimport/KeybaseKeyserver.java index 0a55fccc8..a228c3041 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/keyimport/KeybaseKeyserver.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/keyimport/KeybaseKeyserver.java @@ -76,10 +76,10 @@ public class KeybaseKeyserver extends Keyserver { // store extra info, so we can query for the keybase id directly entry.setExtraData(username); - final int algorithmId = match.getAlgorithmId(); - entry.setAlgorithm(PgpKeyHelper.getAlgorithmInfo(algorithmId, null, null)); final int bitStrength = match.getBitStrength(); entry.setBitStrength(bitStrength); + final int algorithmId = match.getAlgorithmId(); + entry.setAlgorithm(PgpKeyHelper.getAlgorithmInfo(algorithmId, bitStrength, null)); ArrayList userIds = new ArrayList(); String name = fullName + " "; -- cgit v1.2.3