am 1faefa06
: Merge "Fix one NPE in tethering setting"
* commit '1faefa06a3a742123af8ea5be5bbfb730db16c7c': Fix one NPE in tethering setting
This commit is contained in:
@@ -385,6 +385,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