mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 01:32:16 -05:00
Group fingerprint again to make it visually consistent
This commit is contained in:
parent
77365202e0
commit
a17481b80a
@ -511,6 +511,11 @@ public class PgpKeyHelper {
|
|||||||
|
|
||||||
|
|
||||||
public static SpannableStringBuilder colorizeFingerprint(String fingerprint) {
|
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);
|
SpannableStringBuilder sb = new SpannableStringBuilder(fingerprint);
|
||||||
try {
|
try {
|
||||||
// for each 4 characters of the fingerprint + 1 space
|
// for each 4 characters of the fingerprint + 1 space
|
||||||
|
Loading…
Reference in New Issue
Block a user