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

Commit 01388540 authored by John Du's avatar John Du
Browse files

Change abortReliableWrite(BluetoothDevice) to abortReliableWrite()

BluetoothGatt.abortReliableWrite() should not take a BluetoothDevice
parameter. Instead, it should use mDevice instance variable.
bug 10152994

Change-Id: I7fc79b9011cf878414128cc9f1696e5ccc597056
parent 4487d4a7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1102,7 +1102,7 @@ public final class BluetoothGatt implements BluetoothProfile {
     *
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH} permission.
     */
    public void abortReliableWrite(BluetoothDevice mDevice) {
    public void abortReliableWrite() {
        if (DBG) Log.d(TAG, "abortReliableWrite() - device: " + mDevice.getAddress());
        if (mService == null || mClientIf == 0) return;

@@ -1113,6 +1113,13 @@ public final class BluetoothGatt implements BluetoothProfile {
        }
    }

    /**
     * @deprecated Use {@link abortReliableWrite()}
     */
    public void abortReliableWrite(BluetoothDevice mDevice) {
        abortReliableWrite();
    }

    /**
     * Enable or disable notifications/indications for a given characteristic.
     *