Loading framework/java/android/bluetooth/BluetoothAdapter.java +4 −1 Original line number Diff line number Diff line Loading @@ -3601,7 +3601,10 @@ public final class BluetoothAdapter { if (context == null || listener == null) { return false; } // Do not create proxies when BT is OFF if (getState() != STATE_ON) { return false; } if (profile == BluetoothProfile.HEADSET) { BluetoothHeadset headset = new BluetoothHeadset(context, listener, this); return true; Loading Loading
framework/java/android/bluetooth/BluetoothAdapter.java +4 −1 Original line number Diff line number Diff line Loading @@ -3601,7 +3601,10 @@ public final class BluetoothAdapter { if (context == null || listener == null) { return false; } // Do not create proxies when BT is OFF if (getState() != STATE_ON) { return false; } if (profile == BluetoothProfile.HEADSET) { BluetoothHeadset headset = new BluetoothHeadset(context, listener, this); return true; Loading