From 67efa271bbff6f7ab355f8a0f121eca29a4dbec2 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Wed, 9 Sep 2009 14:57:19 -0700 Subject: [PATCH] Fix display strings and enter passkey handling. --- res/values/strings.xml | 4 ++-- .../android/settings/bluetooth/BluetoothPairingDialog.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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);