Small improvement

This commit is contained in:
M66B 2021-09-08 12:34:36 +02:00
parent 73566b6de2
commit a23497543a
3 changed files with 3 additions and 3 deletions

View File

@ -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));
}

View File

@ -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);

View File

@ -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");
}