am b5394ac0: am 20a5bf28: am 1c09186d: Merge "Fix issue with wifi passwords >16 chars" into lmp-dev

* commit 'b5394ac03391ae1d8a69cd481fd84c0880aca170':
  Fix issue with wifi passwords >16 chars
This commit is contained in:
Andres Morales
2014-09-04 19:59:47 +00:00
committed by Android Git Automerger

View File

@@ -125,7 +125,7 @@ class WriteWifiConfigToNfcDialog extends AlertDialog
String passwordHex = byteArrayToHexString(password.getBytes());
String passwordLength = password.length() >= HEX_RADIX
? "" + Character.forDigit(password.length(), HEX_RADIX)
? Integer.toString(password.length(), HEX_RADIX)
: "0" + Character.forDigit(password.length(), HEX_RADIX);
passwordHex = String.format(PASSWORD_FORMAT, passwordLength, passwordHex).toUpperCase();