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
This commit is contained in:
John Du
2013-08-19 12:20:37 -07:00
parent 5851493762
commit 48f8b5dbf6
2 changed files with 10 additions and 2 deletions

View File

@@ -5014,7 +5014,8 @@ package android.bluetooth {
}
public final class BluetoothGatt implements android.bluetooth.BluetoothProfile {
method public void abortReliableWrite(android.bluetooth.BluetoothDevice);
method public void abortReliableWrite();
method public deprecated void abortReliableWrite(android.bluetooth.BluetoothDevice);
method public boolean beginReliableWrite();
method public void close();
method public boolean connect();

View File

@@ -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.
*