* commit '9e96c453fb84ec4832bde217617958121947128b': Fix one NPE in tethering setting
This commit is contained in:
@@ -387,6 +387,8 @@ public class TetherSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
|
||||
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
|
||||
if (adapter == null)
|
||||
return;
|
||||
int btState = adapter.getState();
|
||||
if (btState == BluetoothAdapter.STATE_TURNING_OFF) {
|
||||
mBluetoothTether.setEnabled(false);
|
||||
|
Reference in New Issue
Block a user