Merge pull request #645 from timbray/master
Don't show full fingerprint in key search result lists
This commit is contained in:
@@ -144,7 +144,8 @@ public class KeybaseKeyserver extends Keyserver {
|
|||||||
try {
|
try {
|
||||||
JSONObject json = new JSONObject(text);
|
JSONObject json = new JSONObject(text);
|
||||||
if (JWalk.getInt(json, "status", "code") != 0) {
|
if (JWalk.getInt(json, "status", "code") != 0) {
|
||||||
throw new QueryFailedException("Keybase autocomplete search failed");
|
throw new QueryFailedException("Keybase.io query failed: " + path + "?" +
|
||||||
|
query);
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
|
|||||||
@@ -149,12 +149,8 @@ public class ImportKeysAdapter extends ArrayAdapter<ImportKeysListEntry> {
|
|||||||
|
|
||||||
holder.keyId.setText(entry.keyIdHex);
|
holder.keyId.setText(entry.keyIdHex);
|
||||||
|
|
||||||
if (entry.fingerprintHex != null) {
|
// don't show full fingerprint on key import
|
||||||
holder.fingerprint.setVisibility(View.VISIBLE);
|
holder.fingerprint.setVisibility(View.GONE);
|
||||||
holder.fingerprint.setText(PgpKeyHelper.colorizeFingerprint(entry.fingerprintHex));
|
|
||||||
} else {
|
|
||||||
holder.fingerprint.setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (entry.bitStrength != 0 && entry.algorithm != null) {
|
if (entry.bitStrength != 0 && entry.algorithm != null) {
|
||||||
holder.algorithm.setText("" + entry.bitStrength + "/" + entry.algorithm);
|
holder.algorithm.setText("" + entry.bitStrength + "/" + entry.algorithm);
|
||||||
|
|||||||
Reference in New Issue
Block a user