We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6403bb4 + 3734966 commit 0c73e5bCopy full SHA for 0c73e5b
1 file changed
services/core/java/com/android/server/BluetoothManagerService.java
@@ -1236,7 +1236,7 @@ public IBluetoothGatt getBluetoothGatt() {
1236
@Override
1237
public boolean bindBluetoothProfileService(int bluetoothProfile,
1238
IBluetoothProfileServiceConnection proxy) {
1239
- if (!mEnable) {
+ if (mState != BluetoothAdapter.STATE_ON) {
1240
if (DBG) {
1241
Slog.d(TAG, "Trying to bind to profile: " + bluetoothProfile
1242
+ ", while Bluetooth was disabled");
@@ -1400,7 +1400,7 @@ private boolean bindService() {
1400
mBluetoothLock.readLock().unlock();
1401
}
1402
1403
- if (!mEnable || state != BluetoothAdapter.STATE_ON) {
+ if (state != BluetoothAdapter.STATE_ON) {
1404
1405
Slog.d(TAG, "Unable to bindService while Bluetooth is disabled");
1406
0 commit comments