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

Commit 9cf8a60b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "bluetooth: fix crash on accessing null adapter"

parents 46cfc4a7 945c2497
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -67,8 +67,10 @@ public final class BluetoothManager {
        }
        // Legacy api - getDefaultAdapter does not take in the context
        mAdapter = BluetoothAdapter.getDefaultAdapter();
        if (mAdapter != null) {
            mAdapter.setContext(context);
        }
    }

    /**
     * Get the default BLUETOOTH Adapter for this device.