* commit 'a1fa7cef5d88d0f515efa07d0f7274c41fa6d712': 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