diff options
author | John Du <johnldu@google.com> | 2013-08-19 12:20:37 -0700 |
---|---|---|
committer | John Du <johnldu@google.com> | 2013-08-19 16:01:24 -0700 |
commit | 48f8b5dbf6d387002abee1ec0da73446d2aab0df (patch) | |
tree | a8962f4d29a56dc02345138072b4a49b4a643bc7 /core/java/android/bluetooth/BluetoothGatt.java | |
parent | 58514937628dfcf3b2949e4cbc45d5526ecb8019 (diff) | |
download | frameworks_base-48f8b5dbf6d387002abee1ec0da73446d2aab0df.zip frameworks_base-48f8b5dbf6d387002abee1ec0da73446d2aab0df.tar.gz frameworks_base-48f8b5dbf6d387002abee1ec0da73446d2aab0df.tar.bz2 |
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
Diffstat (limited to 'core/java/android/bluetooth/BluetoothGatt.java')
-rw-r--r-- | core/java/android/bluetooth/BluetoothGatt.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothGatt.java b/core/java/android/bluetooth/BluetoothGatt.java index a8c310b..86224e0 100644 --- a/core/java/android/bluetooth/BluetoothGatt.java +++ b/core/java/android/bluetooth/BluetoothGatt.java @@ -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; @@ -1114,6 +1114,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. * * <p>Once notifications are enabled for a characteristic, a |