Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1faefa06 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Gerrit Code Review
Browse files

Merge "Fix one NPE in tethering setting"

parents 8f00b771 508c7c16
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -385,6 +385,8 @@ public class TetherSettings extends SettingsPreferenceFragment
        }
        }


        BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
        BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
        if (adapter == null)
            return;
        int btState = adapter.getState();
        int btState = adapter.getState();
        if (btState == BluetoothAdapter.STATE_TURNING_OFF) {
        if (btState == BluetoothAdapter.STATE_TURNING_OFF) {
            mBluetoothTether.setEnabled(false);
            mBluetoothTether.setEnabled(false);