Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c09186d authored by Andres Morales's avatar Andres Morales Committed by Android (Google) Code Review
Browse files

Merge "Fix issue with wifi passwords >16 chars" into lmp-dev

parents 87c7cec8 3902c785
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();