diff --git a/res/values/strings.xml b/res/values/strings.xml index 9043dba1197..06057e70265 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -513,9 +513,9 @@ Bluetooth device info - %1$s\nType PIN to pair.\n(Try 0000 or 1234.) + \nType PIN to pair with \u0022%1$s\u0022. (Try 0000 or 1234.) - %1$s\nType passkey to pair.\n + \nType passkey to pair with \u0022%1$s\u0022. To pair with \u0022%1$s\u0022, confirm that it is showing the passkey: %2$s. diff --git a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java index ac5dfbaa584..091ad2740f0 100644 --- a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java @@ -223,7 +223,7 @@ public class BluetoothPairingDialog extends AlertActivity implements DialogInter } mDevice.setPin(pinBytes); } else if (mType == BluetoothDevice.PAIRING_VARIANT_PASSKEY) { - int passkey = Integer.getInteger(value); + int passkey = Integer.parseInt(value); mDevice.setPasskey(passkey); } else { mDevice.setPairingConfirmation(true);