diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsEncryption.java b/app/src/main/java/eu/faircode/email/FragmentOptionsEncryption.java index ff0905450e..c856e9820e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsEncryption.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsEncryption.java @@ -387,7 +387,7 @@ public class FragmentOptionsEncryption extends FragmentBase implements SharedPre try { int maxKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength("AES"); tvKeySize.setText(getString(R.string.title_advanced_aes_key_size, - Helper.humanReadableByteCount(maxKeySize))); + Helper.humanReadableByteCount(maxKeySize, false))); } catch (NoSuchAlgorithmException ex) { tvKeySize.setText(Log.formatThrowable(ex)); } diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 71281efdb8..af71b122c6 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -1208,7 +1208,7 @@ public class Helper { return humanReadableByteCount(bytes, true); } - private static String humanReadableByteCount(long bytes, boolean si) { + static String humanReadableByteCount(long bytes, boolean si) { int sign = (int) Math.signum(bytes); bytes = Math.abs(bytes); diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index c9f6d91211..cfcae6ac4e 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -1774,7 +1774,7 @@ public class Log { try { int maxKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength("AES"); sb.append(context.getString(R.string.title_advanced_aes_key_size, - Helper.humanReadableByteCount(maxKeySize))).append("\r\n"); + Helper.humanReadableByteCount(maxKeySize, false))).append("\r\n"); } catch (Throwable ex) { sb.append(ex.toString()).append("\r\n"); }