diff --git a/res/values/strings.xml b/res/values/strings.xml index ad91424bc4a..5a72057d39c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -515,7 +515,11 @@ %1$s\n\nType passkey to pair.\n - \n Passkey: %2$d\n\nIs the same passkey displayed on: %1$s ?\n + To pair with \u0022%1$s\u0022, confirm that it is showing the passkey: %2$d. + + Pair + + Don\u0027t Pair Attention diff --git a/src/com/android/settings/bluetooth/BluetoothEventRedirector.java b/src/com/android/settings/bluetooth/BluetoothEventRedirector.java index 55b2b77b00b..47687351476 100644 --- a/src/com/android/settings/bluetooth/BluetoothEventRedirector.java +++ b/src/com/android/settings/bluetooth/BluetoothEventRedirector.java @@ -79,8 +79,7 @@ public class BluetoothEventRedirector { mManager.getLocalDeviceManager().onBondingStateChanged(address, bondState); if (bondState == BluetoothDevice.BOND_NOT_BONDED) { int reason = intent.getIntExtra(BluetoothIntent.REASON, BluetoothError.ERROR); - if (reason == BluetoothDevice.UNBOND_REASON_AUTH_FAILED || - reason == BluetoothDevice.UNBOND_REASON_AUTH_REJECTED || + if (reason == BluetoothDevice.UNBOND_REASON_AUTH_REJECTED || reason == BluetoothDevice.UNBOND_REASON_REMOTE_DEVICE_DOWN) { mManager.getLocalDeviceManager().onBondingError(address, reason); } diff --git a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java index bbe094f8ca0..04a3722ef9f 100644 --- a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java @@ -160,9 +160,9 @@ public class BluetoothPairingDialog extends AlertActivity implements DialogInter p.mIconId = android.R.drawable.ic_dialog_info; p.mTitle = getString(R.string.bluetooth_pin_entry); p.mView = createView(); - p.mPositiveButtonText = getString(android.R.string.yes); + p.mPositiveButtonText = getString(R.string.bluetooth_pairing_accept); p.mPositiveButtonListener = this; - p.mNegativeButtonText = getString(android.R.string.no); + p.mNegativeButtonText = getString(R.string.bluetooth_pairing_decline); p.mNegativeButtonListener = this; setupAlert(); } @@ -191,8 +191,6 @@ public class BluetoothPairingDialog extends AlertActivity implements DialogInter unregisterReceiver(mReceiver); } - - public void afterTextChanged(Editable s) { if (s.length() > 0) { mOkButton.setEnabled(true); @@ -212,6 +210,7 @@ public class BluetoothPairingDialog extends AlertActivity implements DialogInter mOkButton = mAlert.getButton(DialogInterface.BUTTON_POSITIVE); mOkButton.setEnabled(true); + mOkButton.setText(android.R.string.ok); mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).setVisibility(View.GONE); }