Loading framework/java/android/bluetooth/le/BluetoothLeAdvertiser.java +5 −2 Original line number Diff line number Diff line Loading @@ -550,9 +550,12 @@ public final class BluetoothLeAdvertiser { return; } IBluetoothGatt gatt; IBluetoothGatt gatt = mBluetoothAdapter.getBluetoothGatt(); if (gatt == null) { Log.e(TAG, "Bluetooth GATT is null"); return; } try { gatt = mBluetoothAdapter.getBluetoothGatt(); final SynchronousResultReceiver recv = SynchronousResultReceiver.get(); gatt.stopAdvertisingSet(wrapped, mAttributionSource, recv); recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(null); Loading Loading
framework/java/android/bluetooth/le/BluetoothLeAdvertiser.java +5 −2 Original line number Diff line number Diff line Loading @@ -550,9 +550,12 @@ public final class BluetoothLeAdvertiser { return; } IBluetoothGatt gatt; IBluetoothGatt gatt = mBluetoothAdapter.getBluetoothGatt(); if (gatt == null) { Log.e(TAG, "Bluetooth GATT is null"); return; } try { gatt = mBluetoothAdapter.getBluetoothGatt(); final SynchronousResultReceiver recv = SynchronousResultReceiver.get(); gatt.stopAdvertisingSet(wrapped, mAttributionSource, recv); recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(null); Loading