mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
73566b6de2
commit
a23497543a
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue