From 2affa6b28ddacc87f0f95f2ddd124b256ff61850 Mon Sep 17 00:00:00 2001 From: "jhtop.kim" Date: Mon, 18 Jul 2011 23:42:37 +0900 Subject: [PATCH] Bluetooth : UI bug fix : Pairing dialog box takes space as character - In pairing dialog box even if PIN was removed in text box, still the OK button is enabled - When length is zero , disable the OK button in pairing dialog - update fix to prevent error while mOkButton is not ceated. Change-Id: I38ff3029cff2e7c4e87b7f9c93fa262125e91d44 Signed-off-by: jhtop.kim --- .../android/settings/bluetooth/BluetoothPairingDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/com/android/settings/bluetooth/BluetoothPairingDialog.java diff --git a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java old mode 100644 new mode 100755 index 1ec8ff2ebad..1cdd41aefc6 --- a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java @@ -297,8 +297,8 @@ public final class BluetoothPairingDialog extends AlertActivity implements } public void afterTextChanged(Editable s) { - if (s.length() > 0) { - mOkButton.setEnabled(true); + if (mOkButton != null) { + mOkButton.setEnabled(s.length() > 0); } }