diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-03-20 19:08:42 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-03-20 19:08:42 +0100 |
commit | 7edc062147c5a6b09cba31f512b4bcdd1622f7a2 (patch) | |
tree | 37b193bc446f47cf5188622d4ed236402d7d2240 /OpenPGP-Keychain/src/main/java/org/sufficientlysecure | |
parent | 77365202e0771abb0a1e8e3a2599ecb9664b3990 (diff) | |
parent | f5ecd2ae466837f24f4a9614240fd9eb4a6fb536 (diff) | |
download | open-keychain-7edc062147c5a6b09cba31f512b4bcdd1622f7a2.tar.gz open-keychain-7edc062147c5a6b09cba31f512b4bcdd1622f7a2.tar.bz2 open-keychain-7edc062147c5a6b09cba31f512b4bcdd1622f7a2.zip |
Merge pull request #456 from thi/adjust-fingerprint-layouts
Adjust fingerprint layouts
Diffstat (limited to 'OpenPGP-Keychain/src/main/java/org/sufficientlysecure')
-rw-r--r-- | OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java index 35412d4b8..ec0932773 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java @@ -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 |