Group fingerprint again to make it visually consistent

This commit is contained in:
Thialfihar 2014-03-20 18:33:19 +01:00
parent 77365202e0
commit a17481b80a

View File

@ -511,6 +511,11 @@ public class PgpKeyHelper {
public static SpannableStringBuilder colorizeFingerprint(String fingerprint) {
// add line breaks to have a consistent "image" that can be recognized
char[] chars = fingerprint.toCharArray();
chars[24] = '\n';
fingerprint = String.valueOf(chars);
SpannableStringBuilder sb = new SpannableStringBuilder(fingerprint);
try {
// for each 4 characters of the fingerprint + 1 space