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 | 59d15654a5ab54a9f1a228152e3d6d829b108a2b (patch) | |
tree | 1536e0f5df752df664f836098fab7bebd98e89bd /framework/java/android/bluetooth/BluetoothManager.java | |
parent | 2e8a0aff66e8501eb5a425b8bfea92ef0dbdc80c (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 'framework/java/android/bluetooth/BluetoothManager.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothManager.java b/framework/java/android/bluetooth/BluetoothManager.java index 00058a9790..29283e793c 100644 --- a/framework/java/android/bluetooth/BluetoothManager.java +++ b/framework/java/android/bluetooth/BluetoothManager.java @@ -236,7 +236,7 @@ public final class BluetoothManager { Log.e(TAG, "Fail to get GATT Server connection"); return null; } - BluetoothGattServer mGattServer = new BluetoothGattServer(context, iGatt,transport); + BluetoothGattServer mGattServer = new BluetoothGattServer(iGatt,transport); Boolean regStatus = mGattServer.registerCallback(callback); return regStatus? mGattServer : null; } catch (RemoteException e) { |