summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth/BluetoothPinDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/bluetooth/BluetoothPinDialog.java')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothPinDialog.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothPinDialog.java b/src/com/android/settings/bluetooth/BluetoothPinDialog.java
index 5e289f7..a8e7737 100644
--- a/src/com/android/settings/bluetooth/BluetoothPinDialog.java
+++ b/src/com/android/settings/bluetooth/BluetoothPinDialog.java
@@ -157,12 +157,11 @@ public class BluetoothPinDialog extends AlertActivity implements DialogInterface
messageView.setText(getString(R.string.bluetooth_pairing_error_message,
mLocalManager.getLocalDeviceManager().getName(mAddress)));
- mPinView.setVisibility(View.GONE);
+ mPinView.setEnabled(false);
mPinView.clearFocus();
mPinView.removeTextChangedListener(this);
-
- mOkButton.setEnabled(true);
- mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).setVisibility(View.GONE);
+
+ mAlert.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(false);
}
private void onPair(String pin) {