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

Commit d1a04291 authored by Nick Pelly's avatar Nick Pelly
Browse files

Update application code for BluetoothAdapter.getDefaultAdapter().

Change-Id: Ic8f2188a28631f55ceb048daff545ca5e6053f92
DrNo: eastham
Bug: 2158765
Joke: When is a car not a car? When it turns into a driveway.
parent 06a111be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ public class LocalBluetoothManager {
        // This will be around as long as this process is
        mContext = context.getApplicationContext();

        mAdapter = (BluetoothAdapter) context.getSystemService(Context.BLUETOOTH_SERVICE);
        mAdapter = BluetoothAdapter.getDefaultAdapter();
        if (mAdapter == null) {
            return false;
        }
+1 −1
Original line number Diff line number Diff line
@@ -377,7 +377,7 @@ public class Status extends PreferenceActivity {
    }

    private void setBtStatus() {
        BluetoothAdapter bluetooth = (BluetoothAdapter) getSystemService(BLUETOOTH_SERVICE);
        BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter();
        Preference btAddressPref = findPreference(KEY_BT_ADDRESS);

        if (bluetooth == null) {