diff options
Diffstat (limited to 'src/com/android/settings/bluetooth/BluetoothDevicePreference.java')
-rw-r--r-- | src/com/android/settings/bluetooth/BluetoothDevicePreference.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java index b4daa88..237e4ab 100644 --- a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java +++ b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java @@ -105,7 +105,9 @@ public class BluetoothDevicePreference extends Preference implements CachedBluet @Override protected void onBindView(View view) { // Disable this view if the bluetooth enable/disable preference view is off - setDependency("bt_checkbox"); + if (null != findPreferenceInHierarchy("bt_checkbox")){ + setDependency("bt_checkbox"); + } super.onBindView(view); |