diff options
author | jhtop.kim <jhtop.kim@samsung.com> | 2011-07-18 23:42:37 +0900 |
---|---|---|
committer | Jake Hamby <jhamby@google.com> | 2011-07-18 15:32:25 -0700 |
commit | 2affa6b28ddacc87f0f95f2ddd124b256ff61850 (patch) | |
tree | cefd723be5e94003446706eab9617b4c9513cb88 /src/com/android/settings | |
parent | 93a727d5d5d1f78525840f53e67915fcd1da42a4 (diff) | |
download | packages_apps_settings-2affa6b28ddacc87f0f95f2ddd124b256ff61850.zip packages_apps_settings-2affa6b28ddacc87f0f95f2ddd124b256ff61850.tar.gz packages_apps_settings-2affa6b28ddacc87f0f95f2ddd124b256ff61850.tar.bz2 |
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 <jhtop.kim@samsung.com>
Diffstat (limited to 'src/com/android/settings')
-rwxr-xr-x[-rw-r--r--] | src/com/android/settings/bluetooth/BluetoothPairingDialog.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothPairingDialog.java b/src/com/android/settings/bluetooth/BluetoothPairingDialog.java index 1ec8ff2..1cdd41a 100644..100755 --- 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); } } |