diff options
| author | Jeremy Klein <jlklein@google.com> | 2016-09-27 14:34:33 -0700 |
|---|---|---|
| committer | Andre Eisenbach <eisenbach@google.com> | 2016-09-28 07:09:38 +0000 |
| commit | adc26ec1b4060358d918d1bdf491f5192b35c2d3 (patch) | |
| tree | b9a59c9151679a402a89e842afdc398a014a9aa1 /core/java/android/bluetooth/BluetoothDevice.java | |
| parent | 4e236046aea01e6cf13dafb25ccf9ebf4de5b197 (diff) | |
Remove unused mContext from BluetoothGatt[Server].
All that this member variable is doing right now is leaking a
reference to a context without any benefit.
Bug: 31752040
Bug: 31710795
Change-Id: If2241422533318b866340e8dcc9f5fbd9518349c
Diffstat (limited to 'core/java/android/bluetooth/BluetoothDevice.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothDevice.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index 6d6dfebced2c..cd5eff29237c 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -1596,7 +1596,7 @@ public final class BluetoothDevice implements Parcelable { // BLE is not supported return null; } - BluetoothGatt gatt = new BluetoothGatt(context, iGatt, this, transport); + BluetoothGatt gatt = new BluetoothGatt(iGatt, this, transport); gatt.connect(autoConnect, callback); return gatt; } catch (RemoteException e) {Log.e(TAG, "", e);} |
