OSDN Git Service

Fix NPE in WirelessSettings.onCreate() for SDK and non-BT devices.
authorJake Hamby <jhamby@google.com>
Tue, 29 Mar 2011 03:25:23 +0000 (20:25 -0700)
committerJake Hamby <jhamby@google.com>
Tue, 29 Mar 2011 03:25:23 +0000 (20:25 -0700)
commitf1139aab801f89a19cf7c95f7c25fe49a4efc67b
tree5422625dd9f1a0772bbe0fec72fc73ad19e93318
parentf3b325f54dadb482d73111ab17cf6a51784de11a
Fix NPE in WirelessSettings.onCreate() for SDK and non-BT devices.

Fix NPE when entering Settings app in the SDK (and for devices without
Bluetooth). Also remove the "Bluetooth settings" item in addition to
the Bluetooth toggle item from Wireless settings when BT is missing.

Bug: 4149307
Change-Id: Iecc5960a193cf88664d3217b4d7bdbc2276dabc0
src/com/android/settings/WirelessSettings.java
src/com/android/settings/bluetooth/BluetoothEnabler.java
src/com/android/settings/bluetooth/BluetoothSettings.java